directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499780 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
Date Thu, 25 Jan 2007 13:05:52 GMT
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;
         }



Mime
View raw message