glassfish
  1. glassfish
  2. GLASSFISH-14244

Resources.getResourceByName(Class, String) may return invalid resource

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_b27
    • Component/s: jca
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      14,244

      Description

      Currently, Resources.getResourceByName(ConnectorResource.class, "jca/resource")
      may return any BindableResource by name "jca/resource"
      eg: there can be a AdminObjectResource (Which is a bindable resource) by name
      "jca/resource" instead of Connector Resource in the system.

      Fix will be to make sure that appropriate type is also looked for when the
      resource-name matches and based on that the resource should be returned.

        Activity

        Hide
        Jagadish added a comment -

        FIX INFORMATION :

        https://glassfish-svn.dev.java.net/servlets/ReadMsg?list=commits&msgNo=24753
        svn log -v -r 42199

        Fix will be available in 28th Oct 2010 nightly / promoted build 27

        Show
        Jagadish added a comment - FIX INFORMATION : https://glassfish-svn.dev.java.net/servlets/ReadMsg?list=commits&msgNo=24753 svn log -v -r 42199 Fix will be available in 28th Oct 2010 nightly / promoted build 27

          People

          • Assignee:
            Jagadish
            Reporter:
            Jagadish
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: