Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.2
    • Fix Version/s: EAP_EWP 5.2.0
    • Component/s: None
    • Labels:
      None
    • Affects:
      Release Notes
    • Release Notes Text:
      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.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      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)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bmaxwell Brad Maxwell
                  Reporter:
                  bmaxwell Brad Maxwell
                  Writer:
                  Petr Penicka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: