You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Kiran Ayyagari (JIRA)" <ji...@apache.org> on 2015/10/12 08:57:05 UTC
[jira] [Commented] (DIRSERVER-2104) Renaming an entry which uses a
SINGLE-VALUE attribute in the RDN fails
[ https://issues.apache.org/jira/browse/DIRSERVER-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952712#comment-14952712 ]
Kiran Ayyagari commented on DIRSERVER-2104:
-------------------------------------------
Does the spec define anything about the behavior when the RDN is backed by a single valued attribute.
<rant>
I wonder if any of the spec writers implemented a decent LDAP server while writing the spec.
</rant>
> Renaming an entry which uses a SINGLE-VALUE attribute in the RDN fails
> ----------------------------------------------------------------------
>
> Key: DIRSERVER-2104
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2104
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 2.0.0-M20
> Reporter: Emmanuel Lecharny
> Fix For: 2.0.0-M21
>
>
> There is a test ({{LdifPartitionTest.testLdifRenameAndRetainOldDN}}) that does a rename, trying to keep the old RDN present :
> {code}
> Rdn newRdn = new Rdn( "dc=renamedChild1" );
> RenameOperationContext renameOpCtx = new RenameOperationContext( session, childDn1, newRdn, false );
> partition.rename( renameOpCtx );
> ...
> // the renamed LDIF must contain the old an new Rdn attribute
> String content = FileUtils.readFileToString( new File( wkdir, "ou=test,ou=system/dc=renamedchild1.ldif" ) );
> assertTrue( content.contains( "dc: child1" ) );
> assertTrue( content.contains( "dc: renamedchild1" ) );
> {code}
> The past passes green which is really problematic : the {{DC}} AttributeType is supposed to be SINGLE-VALUE !!!
> {code}
> attributetype ( 0.9.2342.19200300.100.1.25 NAME ( 'dc' 'domainComponent' )
> DESC 'RFC1274/2247: domain component'
> EQUALITY caseIgnoreIA5Match
> SUBSTR caseIgnoreIA5SubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
> SINGLE-VALUE
> USAGE userApplications
> )
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)