Bug 234376 - kontact/kadr akonadi? Problems to add/show new contacts, additional errors in calendar
Summary: kontact/kadr akonadi? Problems to add/show new contacts, additional errors in...
Status: RESOLVED WORKSFORME
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 19:11 UTC by Andreas Kahnt
Modified: 2010-04-16 18:01 UTC (History)
2 users (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 Andreas Kahnt 2010-04-14 19:11:30 UTC
Version:           4.4.2 (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

I put html-text by cut/paste in note field of one contact. On 'ok' an error complaining special text occurred and I removed that text. It needed multiple edit/save cycles to remove all special chars - meanwhile I had to edit some dates in calendar. 

Everytime I saved anything I got an error like "Received item with unknown payload text/directory"(contact) or "Unable to retrieve added item 1 764."(calendar).

For each new contact the field "name"(column left of contact details) but the "Display Name" field is appropiately filled when I edit the contact. Additional these new contacts are "shown" on any search, on double-click at the empty fields the edit dialog appears. But I cannot export these contacts, the application complains "You have not selected any contacts to export" - if I select the new ones together with old ones (with visible display name in "Name" column) only the visible contacts become exported.

How do I have to clear the errors?

Andi
Comment 1 Andreas Kahnt 2010-04-16 12:56:43 UTC
After a reboot:

- I only get this error if I edit one of the contacts I created before the reboot: "Unable to write to file '/home/aka/.local/share/contacts//': Unknown error"

- There are no other errors and 

- I can export the two contacts.
Comment 2 Tobias Koenig 2010-04-16 17:10:52 UTC
Hej,

it seems your files in $HOME/.local/share/contacts/ are messed up somehow and do not contain
valid vCards. Have you copied in there files manually?

To solve this issue I'd recommend to first remove the 'Personal Contacts' address book
from KAddressBook, then inspecting each file in $HOME/.local/share/contacts whether it
contains a valid vCard and removing all files that do not.

Note that the names of the file must be the UIDs of the vCards they contain.

After the cleanup you can add the 'Personal Contacts' resource again and everything should
work as expected.

Ciao,
Tobias
Comment 3 Andreas Kahnt 2010-04-16 18:01:57 UTC
I've nothing done manually in this dir.

The two vcard files for the contacts I added were not in this dir. I added them using the export I did. Then I reactivated the address book as you described - there are NO errors.

Thank you!