You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2009/08/31 14:29:18 UTC

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

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 )