PK90848: LDAP ACCEPTS INVALID URIS LEADING TO UNEXPECTED EXCEPTIONS
Closed as program error.
Error Message: LDAP test throws unexpected NumberFormatException when given certain server URLs, for example: env.put(LdapContext.PROVIDER_URL, "ldap://test.com:389\t"); . Stack Trace: N/A .
Catch NumberFormatException and treat it as if a MalformedURLException had been thrown.
The com.sun.jndi.ldap package uses com.sun.jndi.toolkit.url.Uri to encapsulate LDAP server addresses. This Uri class has validation that is inferior to java.net.URI and thus accepts some types of invalid URI, which lead to unnexpected RuntimeExceptions being thrown (for example, NumberFormatException when the port contains a non-numeric character).
This defect will be fixed in: 1.4.2 SR13 FP1 . Changed the implementation of com.sun.jndi.toolkit.url.Uri to throw a MalformedURLException if parsing the port section would have thrown a NumberFormatException. . To obtain the fix: Install build 20090614 or later
Reported component name
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
Fixed component ID
Applicable component levels