[ 
https://issues.apache.org/jira/browse/DIRSERVER-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14947018#comment-14947018
 ] 

lucas theisen commented on DIRSERVER-1974:
------------------------------------------

I believe I just ran into this issue. 

{code:title=Before rename}
dn:cn=lucas-theisen_childhoodfriend,ou=answers,dc=test

     answer: {SSHA}NHdF/ErEaHmvP5j6sfDEcBYg+mhf31UZBrfUcA==
     userDn: uid=lucas-theisen,ou=people,dc=test
 questionDn: cn=childhoodfriend,ou=questions,dc=test
objectClass: answer
             top
         cn: lucas-theisen_childhoodfriend
{code}

Then I rename (using either the Ldap API or Studio) to 
{{dn:cn=lucas-theisen_childhoodfriend,ou=answers,dc=test}} and search for 
either {{(cn=lucas-theisen_childhood)}} or {{(cn=lucas-theisen_childhood)}}, I 
get:

{code:title=After rename to "cn=lucas-theisen_childhood"}
dn:cn=lucas-theisen_childhoodfriend,ou=answers,dc=asias,dc=aero

     answer: {SSHA}NHdF/ErEaHmvP5j6sfDEcBYg+mhf31UZBrfUcA==
     userDn: uid=lucas-theisen,ou=people,dc=test
 questionDn: cn=childhoodfriend,ou=questions,dc=test
objectClass: answer
             top
         cn: lucas-theisen_childhoodfriend
             lucas-theisen_childhood
{code}

So clearly, it kept the old DN value...  It gets even more interesting in that, 
after i restart the directory _SERVER_ and issue the same query, I get:

{code:title=After restarting ApacheDS}
dn:cn=lucas-theisen_childhood,ou=answers,dc=test

     answer: {SSHA}NHdF/ErEaHmvP5j6sfDEcBYg+mhf31UZBrfUcA==
     userDn: uid=lucas-theisen,ou=people,dc=test
 questionDn: cn=childhoodfriend,ou=questions,dc=test
objectClass: answer
             top
         cn: lucas-theisen_childhoodfriend
             lucas-theisen_childhood
{code}

So it is almost like the rename is flushed to disk, but there is some cache 
that the search hits before checking the disk...  No clue what is going on 
there...

> Rename Operation Issue - ApacheDS
> ---------------------------------
>
>                 Key: DIRSERVER-1974
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1974
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M15
>         Environment: Window server 2008 R2
>            Reporter: Mohd Usman
>              Labels: build, features, patch
>         Attachments: ApacheDSSchemaBrowser.png, CNAttributeInSchema.png, 
> PostRename.png, PreRename.png, SchemaViewerLDAPAdminTool.png
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Whenever we perform Rename operation on an object entry (let’s say Person 
> object), the person gets renamed successfully but the issue is that the old 
> value of the person object still remains.
> The ‘cn’ attribute contains two values now - old value and also the new value.
>  
> Example:
> I have created a person object with DN 
> "cn=person,ou=Apache,dc=example,dc=com" and I want to rename this entry to 
> "cn=person_Rename,ou=Apache,dc=example,dc=com".
> The rename operation executes successfully and the person is renamed to 
> "cn=person_Rename,ou=Apache,dc=example,dc=com". 
> But, the ‘cn’ attribute now contains 
> “person”
> “person_Rename”.
> When verified the schema, ‘cn’ attribute show as ‘single valued’ but after 
> performing the rename operation – the ‘cn’ becomes ‘multi-valued’ and 
> contains two values.
> This an issue with Apache directory which needs to be resolved. Also find the 
> screenshots attached for your reference. Please look into the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to