directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1745844 - /directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
Date Sat, 28 May 2016 07:52:07 GMT
Author: elecharny
Date: Sat May 28 07:52:07 2016
New Revision: 1745844

URL: http://svn.apache.org/viewvc?rev=1745844&view=rev
Log:
Add a call to Strings.toUpperCaseAscii() for the extension

Modified:
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java?rev=1745844&r1=1745843&r2=1745844&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
Sat May 28 07:52:07 2016
@@ -519,13 +519,15 @@ public abstract class AbstractSchemaObje
     @Override
     public List<String> getExtension( String extension )
     {
-        if ( hasExtension( extension ) )
+        String name = Strings.toUpperCaseAscii( extension );
+        
+        if ( hasExtension( name ) )
         {
             for ( Map.Entry<String, List<String>> entry : extensions.entrySet()
)
             {
                 String key = entry.getKey();
                 
-                if ( extension.equalsIgnoreCase( key ) )
+                if ( name.equalsIgnoreCase( key ) )
                 {
                     return entry.getValue();
                 }



Mime
View raw message