directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r524474 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
Date Sat, 31 Mar 2007 19:57:29 GMT
Author: elecharny
Date: Sat Mar 31 12:57:28 2007
New Revision: 524474

URL: http://svn.apache.org/viewvc?view=rev&rev=524474
Log:
Fixed DIRSERVER-889 : the ou attribute values where compared case sensitive when they shouldn't
have been.
This was a consequence of using constants instead of Strings into the code.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java?view=diff&rev=524474&r1=524473&r2=524474
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaManager.java
Sat Mar 31 12:57:28 2007
@@ -157,17 +157,17 @@
     
     static 
     {
-        VALID_OU_VALUES.add( "normalizers" );
-        VALID_OU_VALUES.add( "comparators" );
-        VALID_OU_VALUES.add( "syntaxcheckers" );
-        VALID_OU_VALUES.add( "syntaxes" );
-        VALID_OU_VALUES.add( SchemaConstants.MATCHING_RULES_AT );
-        VALID_OU_VALUES.add( SchemaConstants.MATCHING_RULE_USE_AT );
-        VALID_OU_VALUES.add( SchemaConstants.ATTRIBUTE_TYPES_AT );
-        VALID_OU_VALUES.add( SchemaConstants.OBJECT_CLASSES_AT );
-        VALID_OU_VALUES.add( SchemaConstants.NAME_FORMS_AT );
-        VALID_OU_VALUES.add( SchemaConstants.DIT_CONTENT_RULES_AT );
-        VALID_OU_VALUES.add( SchemaConstants.DIT_STRUCTURE_RULES_AT );
+        VALID_OU_VALUES.add( "normalizers".toLowerCase() );
+        VALID_OU_VALUES.add( "comparators".toLowerCase() );
+        VALID_OU_VALUES.add( "syntaxcheckers".toLowerCase() );
+        VALID_OU_VALUES.add( "syntaxes".toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.MATCHING_RULES_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.MATCHING_RULE_USE_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.ATTRIBUTE_TYPES_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.OBJECT_CLASSES_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.NAME_FORMS_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.DIT_CONTENT_RULES_AT.toLowerCase() );
+        VALID_OU_VALUES.add( SchemaConstants.DIT_STRUCTURE_RULES_AT.toLowerCase() );
         
         HashSet<String> set = new HashSet<String>();
         set.add( "normalizationService" );



Mime
View raw message