directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r887281 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Date Fri, 04 Dec 2009 17:28:19 GMT
Author: elecharny
Date: Fri Dec  4 17:28:19 2009
New Revision: 887281

URL: http://svn.apache.org/viewvc?rev=887281&view=rev
Log:
Loaded schema names must be case insensitive

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java?rev=887281&r1=887280&r2=887281&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Fri Dec  4 17:28:19 2009
@@ -415,7 +415,7 @@
      */
     public Schema getLoadedSchema( String schemaName )
     {
-        return loadedSchemas.get( schemaName );
+        return loadedSchemas.get( StringTools.toLowerCase( schemaName ) );
     }
 
 
@@ -427,7 +427,7 @@
      */
     public boolean isSchemaLoaded( String schemaName )
     {
-        return loadedSchemas.containsKey( schemaName );
+        return loadedSchemas.containsKey( StringTools.toLowerCase( schemaName ) );
     }
 
 
@@ -1302,7 +1302,7 @@
      */
     public void schemaLoaded( Schema schema )
     {
-        this.loadedSchemas.put( schema.getSchemaName(), schema );
+        this.loadedSchemas.put( StringTools.toLowerCase( schema.getSchemaName() ), schema
);
     }
 
 
@@ -1314,7 +1314,7 @@
      */
     public void schemaUnloaded( Schema schema )
     {
-        this.loadedSchemas.remove( schema.getSchemaName() );
+        this.loadedSchemas.remove( StringTools.toLowerCase( schema.getSchemaName() ) );
     }
 
 



Mime
View raw message