Bug 249019 - Random Data loss from address books
Summary: Random Data loss from address books
Status: VERIFIED INTENTIONAL
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 18:25 UTC by Alex Harrowell
Modified: 2010-09-16 17:41 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 Alex Harrowell 2010-08-25 18:25:35 UTC
+++ This bug was initially created as a clone of Bug #243485 +++

Version:           4.4
OS:                Linux (Linux 2.6.34-12-default i686 - OpenSUSE 11.3)

Large vCard address book was successfully imported from KDE4.3.5 to KDE4.4.4. Some time after this, I noted that large (90%) sections of the addressbook had disappeared from the Kontact/KAddressbook view. Other entries had been mangled - bits of other records interpolated, for example.

Checking the $HOME/.kde4/share/apps/kabc/std.vcf, I found that it had been truncated from 266KB to 13KB. I restored from backup. KAddressBook showed all contacts. Some time later, the data loss was repeated.

This has since happened again. It is not associated with any write process against the file. Either KAB or Akonadi seems not to be relied upon not to randomly erase data.

(I guess it's reproducible - if I wait long enough it'll happen.)
Comment 1 Tobias Koenig 2010-09-16 17:02:02 UTC
Hej,

I guess you are using the compatibility bridges for the KResource framework, which show up as 'Address Book (traditional)' in the resource configuration.
Please stop using them and execute the following steps instead:

- remove all address books from KAddressBook
- execute the application 'kaddressbookmigrator' on the console
- add the 'Personal Contacts' address book in KAddressBook

This will migrate the contacts from ~/.kde/share/apps/kabc/std.vcf to ~/.local/share/contacts/ and will setup a new resource that access this new location.

Ciao,
Tobias
Comment 2 Alex Harrowell 2010-09-16 17:41:11 UTC
No. 

1) Resource configuration has "Default Address Book", type:file. No other options available.

2) I am not going to delete my address book, thank you, KAddressBook does that very well and has done so twice more since this bug was reported. Backing up data before and after every write is a useful reminder of the importance of backups.

3) I am also not keen on running anything related to this software against my data for fear of data loss. On start-up of the new KDE install, I was prompted to do some "migration" or other.

4) ./.local/share/contacts/ contains 46 heavily corrupted vCard files out of the 1,026 in the address book.