directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r569565 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxChecker.java
Date Fri, 24 Aug 2007 23:04:40 GMT
Author: elecharny
Date: Fri Aug 24 16:04:40 2007
New Revision: 569565

URL: http://svn.apache.org/viewvc?rev=569565&view=rev
Log:
Fixed a bug in the way the DN was selected (the last character was missing, due to a bad substring)

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

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxChecker.java?rev=569565&r1=569564&r2=569565&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxChecker.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxChecker.java
Fri Aug 24 16:04:40 2007
@@ -121,7 +121,7 @@
                 // except if the '#' is in first position
                 if ( sharpPos > 0 )
                 {
-                    return LdapDN.isValid( strValue.substring( 0, sharpPos -1 ) );
+                    return LdapDN.isValid( strValue.substring( 0, sharpPos ) );
                 }
                 else
                 {



Mime
View raw message