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

Emmanuel Lecharny commented on DIRSERVER-1974:
----------------------------------------------

Ok, now that's weird...

The logic is :

{noformat}
- inject 1000 entries
- loop 100 times :
  - add a new entry

  - look it up
  - search it

  - rename the entry

  - look it up
  - search it

  - delete it
{noformat}

what happens is that the second lookup/search after the rename returns a 
surprising result : the lookup entry's DN is correct, while the search entry's 
DN is not :
{noformat}
Lookup1 : uid=myra-ellen-amos, ou=people,dc=example,dc=com
Correct entry found 1 : uid=myra-ellen-amos,ou=people,dc=example,dc=com/uid: 
myra-ellen-amos

Lookup2 : uid=tory-amos, ou=people,dc=example,dc=com
Wrong entry found 2 : uid=myra-ellen-amos,ou=people,dc=example,dc=com/uid: 
tory-amos
{noformat}

It's pretty much as if the search is not using the same data than the lookup. 
Also note that the lookup is a search on BASE_OBJECT scope !

> Rename Operation Issue - ApacheDS
> ---------------------------------
>
>                 Key: DIRSERVER-1974
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1974
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: jdbm, ldap
>    Affects Versions: 2.0.0-M15
>         Environment: Window server 2008 R2
>            Reporter: Mohd Usman
>            Priority: Blocker
>              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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to