directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1056941 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
Date Sun, 09 Jan 2011 14:35:45 GMT
Author: kayyagari
Date: Sun Jan  9 14:35:44 2011
New Revision: 1056941

URL: http://svn.apache.org/viewvc?rev=1056941&view=rev
Log:
o use lowercase schema names (fix for DIRSHARED-75)

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java?rev=1056941&r1=1056940&r2=1056941&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
Sun Jan  9 14:35:44 2011
@@ -127,7 +127,7 @@ public abstract class AbstractSchemaLoad
      */
     public void addSchema( Schema schema )
     {
-        schemaMap.put( schema.getSchemaName(), schema );
+        schemaMap.put( StringTools.toLowerCase( schema.getSchemaName() ), schema );
     }
     
     
@@ -136,7 +136,7 @@ public abstract class AbstractSchemaLoad
      */
     public void removeSchema( Schema schema )
     {
-        schemaMap.remove( schema.getSchemaName() );
+        schemaMap.remove( StringTools.toLowerCase ( schema.getSchemaName() ) );
     }
 
 



Mime
View raw message