directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r566862 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Date Thu, 16 Aug 2007 21:29:11 GMT
Author: elecharny
Date: Thu Aug 16 14:29:10 2007
New Revision: 566862

URL: http://svn.apache.org/viewvc?view=rev&rev=566862
Log:
Fixed a potential error related to DIRSERVER-832, and add a TODO Fix DIRSERVER-832 in another
place

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java?view=diff&rev=566862&r1=566861&r2=566862
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Thu Aug 16 14:29:10 2007
@@ -59,6 +59,7 @@
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.schema.OidNormalizer;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 import org.apache.directory.shared.ldap.util.EmptyEnumeration;
 
 
@@ -182,7 +183,7 @@
             
             Attribute objectClass = attrs.get( SchemaConstants.OBJECT_CLASS_AT );
             
-            if ( objectClass.contains( SchemaConstants.ALIAS_OC ) )
+            if ( AttributeUtils.containsValueCaseIgnore( objectClass, SchemaConstants.ALIAS_OC
) )
             {
                 String msg = "Attempt to add entry to alias '" + name.getUpName() + "' not
allowed.";
                 ResultCodeEnum rc = ResultCodeEnum.ALIAS_PROBLEM;
@@ -327,6 +328,7 @@
                 {
                     for ( int jj = 0; jj < modAttr.size(); jj++ )
                     {
+                    	// TODO Fix DIRSERVER-832
                         if ( entryAttr.contains( modAttr.get( jj ) ) )
                         {
                             throw new LdapAttributeInUseException( "Trying to add existing
value '" + modAttr.get( jj )



Mime
View raw message