directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r582695 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java
Date Sun, 07 Oct 2007 23:08:45 GMT
Author: akarasulu
Date: Sun Oct  7 16:08:43 2007
New Revision: 582695

URL: http://svn.apache.org/viewvc?rev=582695&view=rev
Log:
fixed breakage due to exception changing semantics

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java?rev=582695&r1=582694&r2=582695&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/schema/AttributeTypeImpl.java
Sun Oct  7 16:08:43 2007
@@ -147,19 +147,7 @@
     {
         if ( substrOid == null )
         {
-            MatchingRule matchingRule = findSubstr( getSuperior() );
-            
-            if ( matchingRule == null )
-            {
-                // We don't have a matching rule for this AT,
-                // let's return an error.
-                String message = "No matching rule defined for attribute " + (names != null
? names[0] : "" ) + "[" + oid + "]";
-                throw new LdapInvalidAttributeValueException( message, ResultCodeEnum.INAPPROPRIATE_MATCHING
);
-            }
-            else
-            {
-                return matchingRule;
-            }
+            return findSubstr( getSuperior() );
         }
         
         return registries.getMatchingRuleRegistry().lookup( substrOid );



Mime
View raw message