Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2104

Renaming an entry which uses a SINGLE-VALUE attribute in the RDN fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-M20
    • Fix Version/s: 2.0.0.AM26
    • Component/s: ldap
    • Labels:
      None

      Description

      There is a test (LdifPartitionTest.testLdifRenameAndRetainOldDN) that does a rename, trying to keep the old RDN present :

              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" ) );
      
      

      The past passes green which is really problematic : the DC AttributeType is supposed to be SINGLE-VALUE !!!

      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
      )
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: