changeset 48647:02cc6b9c271d

8190789: sun/security/provider/certpath/LDAPCertStore/TestURICertStoreParameters.java fails after JDK-8186606 Reviewed-by: mullan
author weijun
date Mon, 06 Nov 2017 22:09:04 +0800
parents 02176e56d91c
children 6cc53a4de27e
files src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {