java.net.URI.parseServerAuthority is not necessary any more and its javadoc has wrong statement

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: core-libs
    • b67
    • generic
    • generic

      Description of URI.parseServerAuthority contains phrase:

      " This method is provided because the generic URI syntax specified in RFC 3986 cannot always distinguish a malformed server-based authority from a legitimate registry-based authority. It must therefore treat some instances of the former as instances of the latter. The authority component in the URI string "//foo:bar", for example, is not a legal server-based authority but it is legal as a registry-based authority."

      Example above is wrong. Host name can't contain ':' symbol. (Now ':' is a memeber of 'gen-delims').

      It seems that a malformed server-based authority can't be a valid registry-based authority now.
      (RFC 3986 page 55: Registry-based naming authorities that use the generic syntax are now defined within the host rule.) => valid reg-based IS valid host IS valid server-based

            Assignee:
            Yujiang Wang (Inactive)
            Reporter:
            Igor Tseytin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: