Uploaded image for project: 'JBoss Remoting'
  1. JBoss Remoting
  2. JBREM-1175

URL-component-based InvokerLocator constructor generates incorrect locator string under IPv6

    Details

      Description

      The constructor

      public InvokerLocator(String protocol, String host, int port, String path, Map parameters)

      creates a uri and originalURI from the component parts of the URL passed into it.
      This uri is incorrectly formed when the host is an IPv6 IP address literal, as square brackets need to be added to IPv6 URLs.

      NOTE: the other constructor

      public InvokerLocator(String uri)

      does work correctly in the non-lagacy parsing case as the method URIParse will parse a valid IPv6 URL into component parts using the URI constructor. This constructor parses an input URI string into component parts in such a way that the hostname will retain its square brackets if the URI represents a well formed IPv6 URL - and these square brackets do not need to be added when the string uri is reconstructed later on oin the method.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ron_sigal Ronald Sigal
                  Reporter:
                  rachmato Richard Achmatowicz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: