bridges: resolve Nextcloud tasks to VTODO-capable lists

Task operations used the same calendar resolver as events, so a request
that named (or defaulted to) an event-only calendar like "personal" put a
VTODO into a collection that rejects it. Read each collection's CalDAV
supported-calendar-component-set, expose it as `components` on
/calendars, and add GET /tasklists (VTODO-capable calendars, minus
Nextcloud Deck boards).

_resolve_calendar is now component-aware: task routes only target a
VTODO-capable list and reject an event-only calendar with a clear 400;
with no name they try default_task_calendar, then default_calendar when
it also accepts VTODO, then the sole user task list. Add the
default_task_calendar config (top-level nextcloud_default_task_calendar
fallback) and document the routes in the bridge catalog.
This commit is contained in:
gabby committed 2026-10-08 01:56:22 +00:00
1 parent 228886f7cd
commit 0005d8f7ee
6 files changed
+231 -20

No files matched your search

+1
View File
@@ -124,6 +124,7 @@ def build_bridge(
"username": config.get("nextcloud_username"),
"app_password": config.get("nextcloud_app_password"),
"default_calendar": config.get("nextcloud_default_calendar"),
"default_task_calendar": config.get("nextcloud_default_task_calendar"),
"default_addressbook": config.get("nextcloud_default_addressbook"),
},
)