You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/01/25 14:05:52 UTC

svn commit: r499780 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java

Author: elecharny
Date: Thu Jan 25 05:05:52 2007
New Revision: 499780

URL: http://svn.apache.org/viewvc?view=rev&rev=499780
Log:
Used AttributeUtils.containsValueCaseIgnore( attr, value) instead of
attr.contains( value )

Modified:
    directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java?view=diff&rev=499780&r1=499779&r2=499780
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java (original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java Thu Jan 25 05:05:52 2007
@@ -231,7 +231,8 @@
          * to be in the same naming context as their access point so the subentries
          * effecting their parent entry applies to them as well.
          */
-        if ( AttributeUtils.containsValue( oc, "subentry", objectClassType ) || oc.contains( subentryOid ) )
+        if ( AttributeUtils.containsValue( oc, "subentry", objectClassType ) || 
+            AttributeUtils.containsValueCaseIgnore( oc, subentryOid ) )
         {
             LdapDN parentDn = ( LdapDN ) dn.clone();
             parentDn.remove( dn.size() - 1 );
@@ -301,7 +302,7 @@
         throws NamingException
     {
         // only perform this for subentries
-        if ( !entry.get( "objectClass" ).contains( "subentry" ) )
+        if ( !AttributeUtils.containsValueCaseIgnore( entry.get( "objectClass" ), "subentry" ) )
         {
             return;
         }