Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6783

JBossEntityResolver returns false positives in resolveClassName()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EAP_EWP 5.1.2 ER1
    • None
    • Other
    • None
    • Found in EAP 5.0.0, reproduced in EAP 5.1.0

    • Hide

      Example URL passed in as systemId: http://localhost:8080/facet/?wsdl&resource=CommonHeaderV3_3.xsd

      When the entityResolver tries to resolve this using the class loader, it asks the classloader for "", which returns the working directory of the java process. It should return null.

      We could make it work if we changed the code (JBossEntityResolver, line 550):

      if(path.length() == 0)
      return null;

      to this:

      if(filename.length() == 0)
      return null;

      Show
      Example URL passed in as systemId: http://localhost:8080/facet/?wsdl&resource=CommonHeaderV3_3.xsd When the entityResolver tries to resolve this using the class loader, it asks the classloader for "", which returns the working directory of the java process. It should return null. We could make it work if we changed the code (JBossEntityResolver, line 550): if(path.length() == 0) return null; to this: if(filename.length() == 0) return null;
    • Not Required
    • NEW

      Given a URL with no filename, the entityResolver will return an incorrect match from the class loader.

              rh-ee-klape Kyle Lape
              rh-ee-klape Kyle Lape
              Jared Morgan Jared Morgan (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: