9 Commits

Author SHA1 Message Date
Alex Dunmow
089a0be495 caldav: sync-collection only on calendars, and review fixes
- sync-collection answers 403 unless the path is a calendar, and not a
  schedule inbox or outbox. A missing sync-level is level 1.
- DAV:sync-token is not returned for DAV:allprop (RFC 6578 section 4).
- schedule-response carries calendar-data only for a 2.x request-status.
- XML responses with a status other than 200 (207 and errors) set
  Content-Type before WriteHeader, so it is no longer dropped.
- Docs: sync-tokens are URIs; FreeBusyBackend advertises
  calendar-auto-schedule, so the backend owns scheduling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:55:09 +08:00
Alex Dunmow
b044a6de1a caldav: getctag, sync-collection, scheduling properties and free/busy
Calendar gains CTag (CS:getctag), SyncToken (DAV:sync-token) and
Transparent (CALDAV:schedule-calendar-transp). Three optional Backend
interfaces, checked with type assertions:

- SyncBackend answers the sync-collection REPORT (RFC 6578) and adds
  DAV:supported-report-set to calendars. ErrInvalidSyncToken gives 403
  with DAV:valid-sync-token.
- PrincipalBackend serves calendar-user-address-set, schedule-inbox-URL
  and schedule-outbox-URL on the principal, and the inbox and outbox
  collections themselves (RFC 6638 section 2).
- FreeBusyBackend answers a VFREEBUSY POST to the outbox with a
  schedule-response (RFC 6638 section 10.3), and adds
  calendar-auto-schedule to the DAV header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:49:40 +08:00
Robin van der Vleuten
2c2af7cdf2 caldav: add Calendar.Color
Read the calendar-color property in the http://apple.com/ns/ical/
namespace in FindCalendar and FindCalendars, and report it in PROPFIND
responses when it is set, the same way as calendar-description.
2026-11-13 14:29:23 +01:00
Thomas Müller
3ed9a4f052 carddav, caldav: add missing headers on PUT
ETag and Last-Modified should be set to the new calendar object or
address object properties.
2024-03-28 11:22:46 +01:00
Thomas Müller
0ea114ec79
caldav: add MKCOL support 2024-02-08 17:08:41 +01:00
Conrad Hoffmann
e3ba95cd77 caldav: add path to interface QueryCalendarObjects
This was missing for proper multi-calendar support.
2024-02-02 14:28:22 +01:00
Dan Berglund
571eba7c02
caldav: add multi-calendar support 2023-08-21 13:06:59 +02:00
Dan Berglund
7dd64908d2
caldav: handle PROPFIND on root
It seems like the Reminders app in iOS/macOS does this request as
the first thing when setting up an account, so it seems reasonable to
handle it for us.

This just returns the most basic current-user-principal now, but that
should hopefully be enough to continue the process.
2023-07-06 12:12:07 +02:00
Dan Berglund
46dbba12fe
caldav: return SupportedComponentSet in PROPFIND
I started using this project to export tasks over CalDav, more
specifically to Reminders on iOS/macOS. I quickly realized that
even if you specify that `SupportedComponentSet` contains `VTODO`, that
isn't reflected properly when doing the `PROPFIND`.

This patch should fix that, while keeping the behaviour of defaulting to
`VEVENT` for propfind. Also added some tests to make sure that I didn't
break anything (Which I hope I didn't 😅).
2023-07-03 10:47:34 +02:00