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

Fix Regression introduced by JBCOMMON-106 in EAP 5.1.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • None
    • None
    • Release Notes
    • Hide
      When a third party JAR or application tried to open a connection and provide a URL that was not a valid URI, the following exception was thrown and the connection was not established:

      <screen>
      java.lang.IllegalArgumentException: URI is not hierarchical
      at java.io.File.<init>(File.java:363)
      at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
      at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
      at java.net.URL.openConnection(URL.java:945)
      at java.net.URL.openStream(URL.java:1010)
      </screen>

      This update ensures that when the <systemitem>org.jboss.net.protocol.file.useURI</systemitem> system property is set to <literal>false</literal>, the provided URLs is not required to be a valid URI. As a result, the exception is no longer thrown when the property is set to <literal>false</literal>, and the connection can be successfully established.
      Show
      When a third party JAR or application tried to open a connection and provide a URL that was not a valid URI, the following exception was thrown and the connection was not established: <screen> java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62) at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40) at java.net.URL.openConnection(URL.java:945) at java.net.URL.openStream(URL.java:1010) </screen> This update ensures that when the <systemitem>org.jboss.net.protocol.file.useURI</systemitem> system property is set to <literal>false</literal>, the provided URLs is not required to be a valid URI. As a result, the exception is no longer thrown when the property is set to <literal>false</literal>, and the connection can be successfully established.
    • Documented as Resolved Issue
    • NEW

    Description

      org.jboss.net.protocol.file.FileURLConnection

      The change included url.toURI() causes URI is not hierarchical from some 3rd party vendors that had a bug passing in a file:vfsfile:...

      public FileURLConnection(final URL url) throws MalformedURLException, IOException
      {
      ...
      file = new File(url.toURI());

      The issue presents itself when some 3rd party jars/applications try to open a connection on a URL where the URL is not a valid URI.

      java.lang.IllegalArgumentException: URI is not hierarchical
      at java.io.File.<init>(File.java:363)
      at org.jboss.net.protocol.file.FileURLConnection.<init>(FileURLConnection.java:62)
      at org.jboss.net.protocol.file.Handler.openConnection(Handler.java:40)
      at java.net.URL.openConnection(URL.java:945)
      at java.net.URL.openStream(URL.java:1010)

      Attachments

        Issue Links

          Activity

            People

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-bmaxwell Brad Maxwell
              Petr Penicka Petr Penicka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: