Bug 307383 - Second editation of task fails with „Only resources can modify remote revisions“
Summary: Second editation of task fails with „Only resources can modify remote revisions“
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: 4.9
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 13:56 UTC by Michal Vaner
Modified: 2012-10-07 21:17 UTC (History)
3 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 Michal Vaner 2012-09-25 13:56:46 UTC
When editing the same task for the second time in a row, saving it fails with error „Unable to store the incidence in the calendar. Try again? Reason: NO Only resources can modify remote revisions“. Retry has the same effect.


Reproducible: Always

Steps to Reproduce:
• Create an account of the „DAV groupware resource“, which contains some
  calendar. I tried owncloud and radicale, both trigger the problem (I use https
  encryption, if it makes any difference).
• Create a task in the TODO view. Save it (all went well now).
• Double-click the task and edit it (for example add some text to the content
  of the task, but any editation seems to trigger it).
• Try hitting the Ok. A message box with the above error pops up. Trying yes on
  the box shows it again without luck. Trying no returns you to the edit dialog.
  You can abort the changes, but not save.

Actual Results:  
I can't save the TODO.


Expected Results:  
The new version is saved and uploaded to the server in the background.


Stopping akonadi by „akonadictl stop“ and starting it again makes it work once more. I can edit and save the same task once. But if I try to edit it second time, it breaks again.
Comment 1 Allen Winter 2012-09-26 13:42:17 UTC
verified, happens for me too.

CC'ing Greg, as he's our CalDAV expert.
Comment 2 Allen Winter 2012-10-07 21:17:47 UTC
Should be fixed now for KDE SC 4.9.3 and above.

Thanks to the following commit:
====================
Git commit 2be280f91c1baa81e3aee3d029b0c507515fb0d5 by Dan Vrátil.
Committed on 07/10/2012 at 12:48.
Pushed by dvratil into branch 'KDE/4.9'.

Correctly update Item's remoteRevision in Akonadi::Item::apply()