directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499775 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Date Thu, 25 Jan 2007 12:58:23 GMT
Author: elecharny
Date: Thu Jan 25 04:58:22 2007
New Revision: 499775

URL: http://svn.apache.org/viewvc?view=rev&rev=499775
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/exception/ExceptionService.java

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java?view=diff&rev=499775&r1=499774&r2=499775
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
(original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Thu Jan 25 04:58:22 2007
@@ -43,6 +43,7 @@
 import org.apache.directory.shared.ldap.message.ModificationItemImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 
 
 /**
@@ -121,7 +122,7 @@
         }
         
         Attribute objectClass = attrs.get( "objectClass" );
-        if ( objectClass.contains( "alias" ) )
+        if ( AttributeUtils.containsValueCaseIgnore( objectClass, "alias" ) )
         {
             String msg = "Attempt to add entry to alias '" + normName.getUpName() + "' not
allowed.";
             ResultCodeEnum rc = ResultCodeEnum.ALIASPROBLEM;



Mime
View raw message