directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r809556 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/SchemaObjectRegistry.java
Date Mon, 31 Aug 2009 12:29:18 GMT
Author: akarasulu
Date: Mon Aug 31 12:29:17 2009
New Revision: 809556

URL: http://svn.apache.org/viewvc?rev=809556&view=rev
Log:
fixing issue with lookups failing because we were not detecting need to convert potentially
supplied alias names to OIDs

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

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/SchemaObjectRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/SchemaObjectRegistry.java?rev=809556&r1=809555&r2=809556&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/SchemaObjectRegistry.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/SchemaObjectRegistry.java
Mon Aug 31 12:29:17 2009
@@ -179,6 +179,11 @@
             return null;
         }
         
+        if ( ! OID.isOID( oid ) )
+        {
+        	oid = getOidByName( oid );
+        }
+        
         T schemaObject = byOid.get( oid );
 
         if ( schemaObject == null )



Mime
View raw message