Bug 227687 - Akonadi-4.4 does not accept any changes in kaddressbook, copies old entries and restore them
Summary: Akonadi-4.4 does not accept any changes in kaddressbook, copies old entries a...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 16:36 UTC by safttuete
Modified: 2010-02-19 17:09 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 safttuete 2010-02-19 16:36:54 UTC
Version:            (using KDE 4.4.0)
Compiler:          gcc-4.4.3 
OS:                Linux
Installed from:    Gentoo Packages

I use kontact with kaddressbook and akonadi all v. 4.4.
My Contacts are organized in folders as vcards. /~/pim/contacts/subcontact1,2 and 3 
The vcards are mixed, made by kaddressbook and downloaded from external sources, but in separated folders.
Setting akonadi up, I choose "KDE-Addressbook" as source, (because its the only source where you can name your Addressbook...)

Now I changed a name of a Folder, and akonadi keeps recreating an empty folder with the old name.
Same happens to an old vcard, even if it is not anymore in the resources akonadi recreates it.

If I modify any contact nothing happens!  


operator==: name differs
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::AddressBook::requestSaveTicket:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::ResourceDir::requestSaveTicket:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::Lock::lock: -- lock name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_Allgemeine Kontakte.lock"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::Lock::lock: -- lock unique name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_Allgemeine Kontakte5azx1Wy1"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::AddressBook::save:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::ResourceDir::save: "/home/saft/pim/kontakte/Allgemeine Kontakte" '
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_5(26992)/kdepimlibs (kabc) KABC::ResourceDir::load: "/home/saft/pim/kontakte/Allgemeine Kontakte" '




only when I restart kontakt the changes take effekt, but only on modified contacts, deleted ones are recreated.





[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::requestSaveTicket:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::Lock::lock: -- lock name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_Kommilitonen.lock"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::Lock::lock: -- lock unique name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_KommilitonenDLbiUhQy"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::AddressBook::save:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::save: "/home/saft/pim/kontakte/Kommilitonen" '
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::AddressBook::requestSaveTicket:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::requestSaveTicket:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::Lock::lock: -- lock name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_Kommilitonen.lock"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::Lock::lock: -- lock unique name: "/home/saft/.kde4/share/apps/kabc/lock/_home_saft_pim_kontakte_KommilitonensJULpkGR"
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::AddressBook::save:
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::save: "/home/saft/pim/kontakte/Kommilitonen" '
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::load: "/home/saft/pim/kontakte/Kommilitonen" '
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[/usr/bin/akonadi_kabc_resource] akonadi_kabc_resource_7(26994)/kdepimlibs (kabc) KABC::ResourceDir::load: "/home/saft/pim/kontakte/Kommilitonen" '
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
[akonadiserver] Append handler: doPreprocessing is false
Comment 1 Tobias Koenig 2010-02-19 16:49:26 UTC
Hej,

the problem is not really Akonadi here but the old vCard directory resource
and the way you use it.
The vCard directory resource does not allow that you put in vCards yourself,
you should always import them via KAddressBook!

To get it working with KAddressBook in 4.4 I propose the following:

  - Remove all address book resources from within KAddressBook
  - Shutdown Akonadi
  - Move your vcard directories ~/pim/contacts/... to a different place
  - Start Akonadi again
  - Start KAddressBook again
  - Create 3 new address books of type 'Personal Contacts' with the paths
      ~/pim/contacts/subcontact1
      ~/pim/contacts/subcontact2
      ~/pim/contacts/subcontact3
  - Import the vCards from your backuped, original directories _via KAddressBook_
    into the newly created address books (File -> Import -> vCard 3.0)

Ciao,
Tobias
Comment 2 safttuete 2010-02-19 16:56:53 UTC
Thanks for the fast answer!
Comment 3 safttuete 2010-02-19 17:09:44 UTC
Well... I can't import anything, neither export... that's another point, I can't change anything within Kaddressbook...