[#12500] Duplicate __uid after copying a contact
Summary Duplicate __uid after copying a contact
Queue Turba
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester heinz (at) htl-steyr (dot) ac (dot) at
Created 2013-07-25 (2096 days ago)
Updated 2013-07-25 (2096 days ago)
Resolved 2013-07-25 (2096 days ago)
Patch No

2013-07-25 21:50:26 Michael Rubinsky Comment #3
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
2013-07-25 21:50:04 Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 816913292126ef6ee463ee638872e4e09d073cf1
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Thu Jul 25 17:48:45 2013 -0400

     Don't persist the UID when copying a contact.

     Bug: 12500

  turba/lib/View/Browse.php |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

2013-07-25 09:27:16 heinz (at) htl-steyr (dot) ac (dot) at Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Duplicate __uid after copying a contact
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
Reply to this comment
When copying a contact, the __uid attribute is also copied

After this, you have two contacts with the save __uid.
__uid is used for documents (vfs) and history
Adding a document to the copy -> it also appears in the original

As descripted in the backend documentation, __uid should be a globally 
unique ID of the entry
so a new value for the attribute should be generated (as for adding a 
new contact)

Tested also with demo.horde.org

Saved Queries