Bug 1172492
Summary: | LoginException thrown by security tests on IPv6 with OpenJDK6 | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Petr Kremensky <pkremens> |
Component: | Testsuite | Assignee: | Josef Cacek <jcacek> |
Status: | CLOSED WONTFIX | QA Contact: | Petr Kremensky <pkremens> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4.0 | CC: | cdewolf, mkopecky, olukas, ozizka, thofman |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-01-12 09:45:25 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Petr Kremensky
2014-12-10 08:11:41 UTC
Looks like a bug in OpenJDK 1.6. KDC address in krb5 configuration file is parsed incorrectly - it presumes that address part after ':' character is a port number and therefore only the first segment of given IPv6 address is taken as a host address, which throws UnknownHostException during login attempt. Problem seems to be in sun.security.krb5.KrbKdcReq#send(String, String, boolean): StringTokenizer strTok = new StringTokenizer(tempKdc, ":"); // tempKdc = "[2001::1]:6088" String kdc = strTok.nextToken(); if (strTok.hasMoreTokens()) { String portStr = strTok.nextToken(); int tempPort = parsePositiveIntString(portStr); if (tempPort > 0) port = tempPort; } |