|
[
Permlink
| « Hide
]
Emmanuel Lecharny added a comment - 01/Jul/06 07:38 AM
A little mistake : we are trying to encode Attributes object, which contains Naming contexts, which themselves contain LdapDN.
Emmanuel Lecharny made changes - 01/Jul/06 08:12 AM
I think that a patch like this one could solve the problem :
Index: apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultDirectoryPartitionNexus.java =================================================================== --- apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultDirectoryPartitionNexus.java (revision 416873) +++ apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultDirectoryPartitionNexus.java (working copy) @@ -428,7 +428,7 @@ partitions.put( partition.getSuffix().toString(), partition ); Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR ); - namingContexts.add( partition.getUpSuffix() ); + namingContexts.add( partition.getUpSuffix().toString() ); } @@ -442,7 +442,7 @@ } Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR ); - namingContexts.remove( partition.getUpSuffix() ); + namingContexts.remove( partition.getUpSuffix().toString() ); partitions.remove( key ); partition.sync(); Alex, is this ok with you ?
Fixed by modifiying the way NamingContexts are stored in the Attribute object : they are now stored as String, not as LdapDN objects.
Regression tests passed ok.
Emmanuel Lecharny made changes - 02/Jul/06 06:48 AM
Emmanuel Lecharny made changes - 02/Jul/06 06:49 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||