In i.e. Owncloud, it’s possible to share calendars with other users as read-only. If a calendar is shared to you (the davdroid user) as read-only, davdroid doesn’t quite handle it gracefully yet.
In the android calendar, create an event in a calendar that you don’t have write access to, or edit an existing event in that calendar (this can be as small as marking ‘attending’ as yes/no)
Force a sync
Calendar sync is now completely bricked. On the server end I can see a http forbidden error:
"PUT /remote.php/caldav/calendars/user/defaultcalendar_shared_by_user/owncloud-1253411a506f5b7dkfjifdkfdfj.ics HTTP/1.0" 403 1229 "-" "DAVdroid/0.5.2-alpha"
No further events are synced from the server -> davdroid or davdroid -> server.
- Gracefully handle http 403 errors (continue syncing other events)
- Show a notification if an error occurs during sync/if the calendar hasn’t been able to sync for longer than a certain period
- If this is possible: detect that a certain calendar is read-only and don’t allow the user to write to it in the first place