You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/08/12 10:49:37 UTC

svn commit: r232242 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java

Author: trustin
Date: Fri Aug 12 01:49:34 2005
New Revision: 232242

URL: http://svn.apache.org/viewcvs?rev=232242&view=rev
Log:
* A possible fix for DIREVE-188
** Fixed that a few part of JdbmContextPartition doesn't store keys as lower-cased strings to existanceIdx.
** Fixed add() method called by modify() methods adds a existance key to the wrong index.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java?rev=232242&r1=232241&r2=232242&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmContextPartition.java Fri Aug 12 01:49:34 2005
@@ -1039,9 +1039,9 @@
             idx.add( mods, id );
 
             // If the attr didn't exist for this id add it to existance index
-            if ( ! existanceIdx.hasValue( mods.getID(), id ) )
+            if ( ! existanceIdx.hasValue( mods.getID().toLowerCase(), id ) )
             {
-                idx.add( mods.getID(), id );
+                existanceIdx.add( mods.getID().toLowerCase(), id );
             }
         }
 
@@ -1307,9 +1307,9 @@
             idx.add( newRdnValue, id );
             
             // Make sure the altered entry shows the existance of the new attrib
-            if ( ! existanceIdx.hasValue( newRdnAttr, id ) )
+            if ( ! existanceIdx.hasValue( newRdnAttr.toLowerCase(), id ) )
             {
-                existanceIdx.add( newRdnAttr, id );
+                existanceIdx.add( newRdnAttr.toLowerCase(), id );
             }
         }