8190789: sun/security/provider/certpath/LDAPCertStore/TestURICertStoreParameters.java fails after JDK-8186606
authorweijun
Mon, 06 Nov 2017 22:09:04 +0800
changeset 48583 02cc6b9c271d
parent 48582 02176e56d91c
child 48584 6cc53a4de27e
8190789: sun/security/provider/certpath/LDAPCertStore/TestURICertStoreParameters.java fails after JDK-8186606 Reviewed-by: mullan
src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java
--- 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) {