Bug 207733 - Impossible to make the 'Copy Address Book Folder' functionality work
Summary: Impossible to make the 'Copy Address Book Folder' functionality work
Status: VERIFIED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 00:16 UTC by Sabine Faure
Modified: 2009-10-29 00:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2009-09-18 00:16:22 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

- Configure Akonadi with an IMAP and Kolab resource
- Launch KAB
- Create a few contacts in the 'Contact' addressbook
- Select that folder and right click in the 'Address Book' or 'Name' column without selecting any contact.
- A context menu appears, in it the second functionality is 'Copy Address Book Folder'. Select it.
- right click and you can see that the 'Paste' functionality is unavailable.

The Address Book folder is supposed to be copied in the clipboard according to the tool tip.
If you check the clipboard history you can read the following:'akonadi:?collection=254'

The 'Copy Address Book Folders' functionality may work but it is impossible to test until the 'Paste' functionality works.

Trunk, Svn Rev 1024850
Comment 1 Tobias Koenig 2009-09-21 10:28:29 UTC
SVN commit 1026235 by tokoe:

Since the drag&drop mime data for collections do not provide
information about mime types, we have to ignore the mime type
check in pastehelper.

BUG: 207733


 M  +4 -0      pastehelper.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026235
Comment 2 Sabine Faure 2009-09-25 00:39:18 UTC
The paste functionality is now available for 'Contacts' address book but when copying and pasting data from another address book nothing happens.

Also the paste functionality is still unavailable from other address books (ex: std.vcf...)

So I am reopening this bug.

Trunk, Svn Rev 1027765
Comment 3 Tobias Koenig 2009-09-25 06:28:03 UTC
Hej Sabine,

the paste action only works for address books that actually support
the paste/creation of collections. The vCard address book for example
doesn't support subcollections, only items. Please check with akonadiconsole
whether the collection you try to paste a collection in really has the
Create Collection ACL set.

Ciao,
Tobias
Comment 4 Tobias Koenig 2009-10-03 12:07:23 UTC
Hej Sabine,

works here, maybe this was the ETM bug you discovered in some
other bug reports as well (the views were not updated). I can
copy complete collections with contacts inside from one
'Personal Contacts' address book to another with current SVN trunk
version.

Ciao,
Tobias
Comment 5 Sabine Faure 2009-10-09 13:16:46 UTC
I retested this today and I now get an error message when trying to paste the copied Addressbook:

'Could not paste data: Unknown error. (Failed to copy collection)' in a 'Paste failed' pop up dialogue.

However, when clicking on 'Ok' from that dialogue the addressbook is copied properly in the selected addressbook.

So I am reopening this bug.

Trunk, Svn Rev 1032841
Comment 6 Tobias Koenig 2009-10-26 17:49:14 UTC
Hej Sabine,

what was the source and target address book you used
for this test? Local to Kolab?

Ciao,
Tobias
Comment 7 Sabine Faure 2009-10-29 00:09:27 UTC
Hi Tobias,

Many different ones (Contacts and a sub folder, Contacts and Personal Contacts...)

I retested this today, and it works so I am closing this bug.

It is now possible to copy an address book folder and paste it in another address book. You can then see the copied folder with contacts and groups inside within the selected address book.

Trunk, Svn Rev 1041831