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

xml-commons resolver does not handle Windows paths properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • EAP_EWP 5.2.0 ER4
    • EAP_EWP 5.1.2
    • Other
    • None
    • Release Notes
    • Hide
      The Apache xml-commons resolver did not correctly convert paths to URLs, instead it prefixed the path with <literal>file:</literal>, then passed it to the URL constructor. This method was incompatible with Microsoft Windows Server because <literal>file:C:\...</literal> is not a valid file URL. This function has been corrected and the method of converting paths to URLs is now compatible with all supported platforms.
      Show
      The Apache xml-commons resolver did not correctly convert paths to URLs, instead it prefixed the path with <literal>file:</literal>, then passed it to the URL constructor. This method was incompatible with Microsoft Windows Server because <literal>file:C:\...</literal> is not a valid file URL. This function has been corrected and the method of converting paths to URLs is now compatible with all supported platforms.
    • Documented as Resolved Issue
    • NEW

      Apache xml-commons resolver (1.1b1 shipped in lib/endorsed) does not correctly convert paths to URLs (using File.toURL or similar), instead simply putting "file:" on the front and passing it to the URL constructor. This does not work on Windows since "file:C:\..." is not a valid file URL, it should be "file:/C:/..." instead.

      This did not affect EAP 5.1.1 and earlier since out FileURLConnection code had incorrect URL deconstruction code, so the bugs cancelled out. That debug was fixed in JBCOMMON-106, triggered this one to be encountered.

      Upstream resolver 1.2 has a partial fix for this (see https://issues.apache.org/bugzilla/show_bug.cgi?id=28719), which handles basic Windows paths but still does not correctly handle UNC paths (\\host\share\...).

        1. JBPAPP-7800.diff
          10 kB
        2. resolver.jar
          58 kB

            mbenitez@redhat.com Martha Benitez
            rhn-support-jlivings James Livingston (Inactive)
            Russell Dickenson Russell Dickenson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: