History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-1599
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Florent Guillaume
Reporter: Florent Guillaume
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Hierarchical vocabularies entry edition/deletion deletes too many entries

Created: 03/10/07 00:34   Updated: 10/06/08 02:21
Component/s: Directory
Affects Version/s: 5.1.1
Fix Version/s: 5.1.2

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 2 hours
Remaining Estimate - 2 hours
Time Spent: Not Specified
Remaining Estimate - 2 hours

Resolution Date: 03/10/07 13:39
Require Callback: No
Participants: Florent Guillaume
Tags:


 Description  « Hide
When a hierarchical directory has an entry with id=A and parent=P, and another entry with id=A and parent=Q, then deleting one entry deletes both.
This is because internally directory ids are supposed to uniquely identify the entry, and the case of a multi-column primary key was not considered. Only the id is taken into account in the SQL delete statement. (I haven't checked LDAP yet.)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Florent Guillaume - 03/10/07 00:36
To fix the delete case I'll just do a simple hack, an overloaded deleteEntry method that takes secondary keys as parameters.
Ideally all the directories should be refactored to allow a multi-value primary key, but that's way more complex.


Florent Guillaume - 03/10/07 02:07
Due to the way edition is done (delete + add), editing has the same problem.

Florent Guillaume - 03/10/07 13:39
Added new Session.deleteEntry(String id, Map<String, String> map) method.