[Bug 237127] kaddressbook looses contact data

Tobias Koenig tokoe at kde.org
Mon May 10 18:26:57 BST 2010


https://bugs.kde.org/show_bug.cgi?id=237127


Tobias Koenig <tokoe at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #1 from Tobias Koenig <tokoe kde org>  2010-05-10 19:26:55 ---
Hej Adrijan,

your use case is quite a kind of a cornercase...
The problem you are facing is, that Akonadi uses a cache to provide fast
access to all data from the resources it is aware of.

If you initially start KAddressBook on partition 1, Akonadi from partition 1
parses
all contacts from $HOME/.local/share/contacts and stores them in the cache.
Changes in KAddressBook are written back to the cache and the file system.
Now if you start KAddressBook initially in partition 2, Akonadi from partition
2 also
loads the contacts from file system and stores them in its cache (note that
this is a different cache then the one on partition 1!). Changes to
KAddressBook
are again written back to the cache and the file system.

Now if you start KAddressBook on partition 1 again, the vCards from the
contact/
directory are not read in again, because they are already cached - under the
assumption
that nobody changed the files while Akonadi has not been running (which is a
wrong
assumption in your special case), so Akonadi doesn't know about changes you did
from KAddressBook
on partition 2. Changing data in KAddressBook will overwrite the data on the
file system now.

So one solution would be to always reload the cache when starting Akonadi,
however that
could be a serious performance problem... For this reason I'm not sure how to
solve this
problem... I'll talk with the other developers

Ciao,
Tobias

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list