Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0, 6.0.0, 5.5.0
    • Fix Version/s: 6.5.0
    • Component/s: core apis
    • Labels:
    • Epic Link:
    • Story Points:
      0.5
    • Support Ticket IDs:

      Description

      The LdapUrl.valueOf() method does not correctly parse IPv6 addresses.

      LdapUrl foo = LdapUrl.valueOf("ldap://[2001:470:1f09:8e7:95ef:465a:8ea3:792e]/");
      

      Fails with:

      Exception in thread "main" org.forgerock.i18n.LocalizedIllegalArgumentException: The provided string "ldap://[2001:470:1f09:8e7:95ef:465a:8ea3:792e]/" cannot be decoded as an LDAP URL because the port number portion 470:1f09:8e7:95ef:465a:8ea3:792e] cannot be decoded as an integer
      

      Note the server's LDAPURL.decode() method calls HostPort.valueOf() which seems to do the right thing with IPv6 addresses.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fabiop Fabio Pistolesi
                Reporter:
                cjr Chris Ridd
                Dev Assignee:
                Fabio Pistolesi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: