directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r528601 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java
Date Fri, 13 Apr 2007 19:14:45 GMT
Author: elecharny
Date: Fri Apr 13 12:14:44 2007
New Revision: 528601

URL: http://svn.apache.org/viewvc?view=rev&rev=528601
Log:
Accepted an empty DN, instead of generating an LdapInvalidAttributeValue exception

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java?view=diff&rev=528601&r1=528600&r2=528601
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxChecker.java
Fri Apr 13 12:14:44 2007
@@ -85,7 +85,10 @@
 
         if ( strValue.length() == 0 )
         {
-            return false;
+            // TODO: this should be a false, but for 
+            // some reason, the principal is empty in 
+            // some cases.
+            return true;
         }
         
         // Check that the value is a valid DN



Mime
View raw message