Bug 296944

Summary: Possible data loss if the destination folder doesn't exists
Product: [Frameworks and Libraries] Akonadi Reporter: Alex Fiestas <afiestas>
Component: Contacts resourceAssignee: Tobias Koenig <tokoe>
Status: RESOLVED FIXED    
Severity: critical CC: jjm, kdepim-bugs, rdieter, vkrause
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Fiestas 2012-03-28 08:05:33 UTC
If for some reason (like what seems a bug in the distribution) the destination folder does not exists, KaddressBook (and the resource) will allow the creation of contacts and they will be stored in the akonadi cache.

Akonadi won't be able to synchronize the data since the folder does not exits in case that something happens to the mysql databse (or in case that we change to another database) we will suffer data loss :/

Maybe we should turn the resource offline in case that the folder does not exists or force the user to select another folder.
Comment 1 Jonathan Marten 2012-03-28 09:11:01 UTC
Is this the vcarddir Akonadi resource?  If so, bug 289565 may be similar or even a duplicate.
Comment 2 Harald Sitter 2012-06-04 05:13:54 UTC
Git commit 20f02b27dcc43948f3f062f9dfded338232a24af by Harald Sitter.
Committed on 04/06/2012 at 07:13.
Pushed by sitter into branch 'master'.

make sure the contacts resource creates its configured path

..to avoid silly errors
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

M  +3    -0    resources/contacts/contactsresource.cpp

http://commits.kde.org/kdepim-runtime/20f02b27dcc43948f3f062f9dfded338232a24af