Error adding reminder to a read-only calendar (Fastmail) #80
Replies: 5 comments 5 replies
-
Hello, Thanks for your report. This is a known problem (internal reference: bitfireAT/davx5#54), and as you have already written, the possible solutions are not easy and all have side effects. I think your solution 1 (don't upload modified events when they come from a read-only calendar) would be the best one. But as you say, such events would be overwritten when they're updated on the server. The "local only" indeed sounds hacky… maybe there could be some local extended property ("custom alarm") for this problem, but it's all not that easy. |
Beta Was this translation helpful? Give feedback.
-
@rfc2822 Thanks very much for the update and letting me know your perspective on this. I'll have more of a think about it and see if I can come up with a draft PR for further discussion. |
Beta Was this translation helpful? Give feedback.
-
This is a problem of eTar. It shall not permit adding a reminder to read-only event/calendar. |
Beta Was this translation helpful? Give feedback.
-
See also Etar-Group/Etar-Calendar#523. |
Beta Was this translation helpful? Give feedback.
-
I have today a different, similar problem. I synchronize one way the tasks and events from server Apparently Tasks.org has modified somehow a task. I would say this was done by the app automatically, but even if the user (me) has changed a VTODO implicitly, this does not change the following problem. I doubt I have changed anything manually, since I have Tasks.org+DAVx⁵ on two phones and both phones started today suddenly at the same time to complain. DAVx⁵ calls PUT for a task and the server reject it with
It is also reproducible: I delete all accounts from DAVx⁵ and all tasks from Tasks.org. Then I set DAVx⁵ to synchorize with Tasks.org and register account for domain That said it would be better, if the authentication-error notifications contain more information on which resource what exactly failed.
DAVx5 4.2.2. For me it seems that with jtx Board this particular problem does not appear. |
Beta Was this translation helpful? Give feedback.
-
I have encountered a minor problem using DAVx5 with Fastmail. Happy to work on a fix and submit a PR, but I was hoping to get some guidance first as I'm a CalDAV newbie.
Setup
Problem I'm Seeing
Specifically, when DAVX5 sends the update request with a new VALARM then Fastmail replies with HTTP 403 and no response body. DAVx5 SyncManager already ignores 403 responses if the
Error.NEED_PRIVILEGES
flag is set in the response, but in this case it's not set (I think rightly so, as we have privileges but this particular calendar is not writable.)Possible Fix 1
The simplest fix I can think of would be not to queue any update events for read-only calendars. However, I don't know if other CalDAV servers might have read-only calendars that do accept updates to only set VALARMs - is that possible?
Possible Fix 2
Ignore any 403 exception if we try to update a calendar that we know is read-only. This allows for the possibility of supporting a "VALARM updates only" CalDAV server, if such a thing exists. I have a branch with this change, here: dev-ose...projectgus:davx5-ose:bugfix/reminders_read_only_calendar
Remaining Problem
With either of these fixes, there's of course still a problem: even if DAVx5 ignores the update failure, any future server-side update to the calendar entry will override the local state and silently erase the reminders. Which is not great...
The only fix I can think of would be to flag the reminder entries in the local database as "local only", and retain any "local only" reminders when updating from the server.
But this seems fiddly, so I wanted to ask here before looking further into it. If there's any approach that you think could be acceptable, I'm happy to work on it and submit a PR.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions