8190789: sun/security/provider/certpath/LDAPCertStore/TestURICertStoreParameters.java fails after JDK-8186606
Reviewed-by: mullan
--- a/src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java Sat Nov 04 08:56:01 2017 +0800
+++ b/src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java Mon Nov 06 22:09:04 2017 +0800
@@ -232,7 +232,7 @@
throw new CertStoreException("Name absent");
}
try {
- if (new CompositeName(name).size() != 1) {
+ if (new CompositeName(name).size() > 1) {
throw new CertStoreException("Invalid name: " + name);
}
} catch (InvalidNameException ine) {