Bug 296944 - Possible data loss if the destination folder doesn't exists
Summary: Possible data loss if the destination folder doesn't exists
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Contacts resource (show other bugs)
Version: 4.8
Platform: unspecified Linux
: NOR critical
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 08:05 UTC by Alex Fiestas
Modified: 2012-06-04 05:13 UTC (History)
4 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 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