JDK-6877357 : IPv6 address does not work
  • Type: Bug
  • Component: security-libs
  • Sub-Component: org.ietf.jgss:krb5
  • Affected Version: 5.0u19
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-08-31
  • Updated: 2011-02-25
  • Resolved: 2009-11-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other JDK 6 JDK 7
5.0u22-rev b06Fixed 5.0u23Fixed 6u18Fixed 7Fixed
Related Reports
Relates :  
Description
One licensee encountered a problem when they are using IPv6 and this issue could not be seen when using IPv4.
When setting a host at kdc that has an assigned IPv6.
- It worked when specifying host name(e.g. "<host name>:88")
- It failed when specifying IPv6 address(e.g. "<IPv6 address>:88")
This issue is about KDC setting in krb5.conf.

Comments
EVALUATION As per the PDE : The fix checks if the host starts with "[" , if so all characters till "]" is host , and the rest if available is port. ":" is searched for in the whole string, if there is none , the value is simply "host" which is either a DNS host name or an IPv4 address. Also we check if there are multiple ":" in the whole string. Since a IPv6 address contains more than 1 ":" , if the string contains multiple ":" it is treated as an IPv6 address else if there is only 1 ":" then it is treated as "host:port" where host is a DNS host name or an IPv4 address.
23-10-2009