directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r544539 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Date Tue, 05 Jun 2007 16:17:10 GMT
Author: elecharny
Date: Tue Jun  5 09:17:09 2007
New Revision: 544539

URL: http://svn.apache.org/viewvc?view=rev&rev=544539
Log:
Removed the "alias" constant, and replaced it
by the SchemaConstants element

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=544539&r1=544538&r2=544539
==============================================================================
--- 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
Tue Jun  5 09:17:09 2007
@@ -185,7 +185,7 @@
             
             Attribute objectClass = attrs.get( SchemaConstants.OBJECT_CLASS_AT );
             
-            if ( objectClass.contains( "alias" ) )
+            if ( objectClass.contains( SchemaConstants.ALIAS_OC ) )
             {
                 String msg = "Attempt to add entry to alias '" + name.getUpName() + "' not
allowed.";
                 ResultCodeEnum rc = ResultCodeEnum.ALIAS_PROBLEM;



Mime
View raw message