Bug 201543 - Akonadi tries to write to a read-only file
Summary: Akonadi tries to write to a read-only file
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: SingleFileResourceBase (show other bugs)
Version: 4.2
Platform: Gentoo Packages Unspecified
: NOR normal
Target Milestone: ---
Assignee: Bertjan Broeksema
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 12:23 UTC by Elias Probst
Modified: 2013-07-31 19:55 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 Elias Probst 2009-07-26 12:23:35 UTC
Version:            (using KDE 4.2.98)
Installed from:    Gentoo Packages

I have a read-only ICS file as calendar in my resources list (Akonadi Configuration KCM).

When opening the properties of this read-only source and clicking OK in the properties dialog, a message appears telling:

Trying to write to a read-only file: 'webcal://ws.audioscrobbler.com/1.0/user/eliasp/events.ics'.

Akonadi shouldn't try to write to a file which is even set to read-only in it's properties.
Comment 1 Nick Leverton 2012-03-15 11:06:10 UTC
Still an issue in kdepim 4.7.3.  Worse, kdepim (or perhaps akonadi) then disables the resource meaning that this feature cannot be used.

I have an .ics file from another application, added to kdepim as a read-only Akonadi iCal resource.   The actual file is mode 0644 but I made it read-only as I only want to pick up any scheduling information and reminders from it, not to write to it.

However kdepim has decided that it wants to write something to this resource, even though it was marked read-only from the beginning.  As a result it complains "trying to write to a readonly file" and disables the resource.  When it changes on disk, I get an additional "The file .... was changed on disk whilst there were still pending changes in Akonadi.  To avoid data loss ....." (unfortunately the rest of the messages is truncated by knotifier and I cannot find a way to display what it is telling me about data loss).
Comment 2 Daniel Vrátil 2013-07-31 19:55:36 UTC
The ICal resource now correctly honors the "Read-only" option. Please reopen if this should appear again.