Bug 349166 - When moving multiple entries, only one of them gets synced
Summary: When moving multiple entries, only one of them gets synced
Status: RESOLVED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-14 21:27 UTC by Thomas Bleher
Modified: 2022-10-23 06:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of akonadiconsole showing the events when two contacts are moved to a CardDAV folder (134.45 KB, image/png)
2015-06-14 21:28 UTC, Thomas Bleher
Details
Screenshot of akonadiconsole showing a contact with empty remote id after moving it to a CardDAV folder (82.03 KB, image/png)
2015-06-14 21:29 UTC, Thomas Bleher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bleher 2015-06-14 21:27:35 UTC
Setup:
- kaddressbook with two configured addressbooks:
  - one existing file backed address book, full with contacts
  - one new address book, backed by ownCloud-CardDAV

It should be possible to select several or all contacts in the old address book and move them to the new address book by drag-n-drop.

This seems to work, and the addresses all show up locally in the new address book, but in fact only one of the addresses is synced (even when waiting for a long time).

There is no indication that the sync did not work. The issue is perfectly reproducible.

Looking at akonadiconsole, one can see that there is a move event for all moved contacts, but only one modify event which adds the remote id. The other entries have no remote id (see screenshots).

This makes the CardDAV functionality basically unusable, because one can never be sure that all entries are in fact synced (unless there is some way to force a sync of the unsynced entries, but I found no way to do that).

Reproducible: Always

Steps to Reproduce:
1. Select two contacts in a local addressbook
2. Move both of them via drag-and-drop to a CardDAV-backed address book
3. Look at the remote side to see which were synced

Actual Results:  
Only one of them was synced.

Expected Results:  
All of them were synced.

KAddressbook 4:4.13.3-0ubuntu0.1 (though About->Version curiously reports the version as 4.14.6!)
Ubuntu Vivid
OwnCloud 8.0.4
Comment 1 Thomas Bleher 2015-06-14 21:28:39 UTC
Created attachment 93175 [details]
Screenshot of akonadiconsole showing the events when two contacts are moved to a CardDAV folder
Comment 2 Thomas Bleher 2015-06-14 21:29:46 UTC
Created attachment 93176 [details]
Screenshot of akonadiconsole showing a contact with empty remote id after moving it to a CardDAV folder
Comment 3 Thomas Bleher 2015-06-30 05:58:55 UTC
I'm highly interested in getting this bug fixed. What additional information should I provide? Would a public ownCloud test instance help?
Comment 4 kramski 2015-11-07 18:33:30 UTC
Same Problem here with KAddressbook 5.0.2, Owncloud 8.1.3 and OC's builtin app 
Contacts 0.4.0.1. (Also tried Contacts Plus 1.0.9 - same result.)

However, when importing a .csv file directly into the CardDAV adress book, ALL new contacts get synced, so a workaround may be to ex- and reimport your existing local data.
Comment 5 kramski 2015-11-07 18:38:24 UTC
(I'm on Arch Linux, KAddressBook 5.0.2, KDE Frameworks 5.15.0, Qt 5.5.1 (built against 5.5.0))
Comment 6 kramski 2016-05-27 13:51:43 UTC
> Steps to Reproduce: 
> 1. Select two contacts in a local addressbook 
> 2. Move both of them via drag-and-drop to a CardDAV-backed address book 
> 3. Look at the remote side to see which were synced 
> Actual Results: Only one of them was synced.

Works for me now with KAddressBook 5.2.1.

Looks like fixing https://bugs.kde.org/show_bug.cgi?id=356995 also solved this one.
Comment 7 Justin Zobel 2022-10-21 00:17:49 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 8 Thomas Bleher 2022-10-23 06:42:56 UTC
(In reply to Justin Zobel from comment #7)
> Thank you for reporting this bug in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the issue with a recent software version?
> 
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!

Thanks for asking :)
I don't use KAddressbook anymore (mostly just using the webfrontend of NextCloud now). But kramski@web.de reported that it works for him now, so I guess this bug can be closed.