From db7800c3f6df14e6b63913622d76e08fa0690554 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 4 May 2026 21:37:48 +0200 Subject: [PATCH] propfind: fix offering of C:supported-calendar-component-set --- radicale/app/propfind.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 32e9cbf4..ae816e4a 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -265,12 +265,14 @@ def xml_propfind_response( elif tag == xmlutils.make_clark("C:supported-calendar-component-set"): human_tag = xmlutils.make_human_tag(tag) if is_collection and is_leaf: - components_text = collection.get_meta(human_tag) - if components_text: - components = components_text.split(",") - else: - components = ["VTODO", "VEVENT", "VJOURNAL"] - if share_bday_automap: + components = [] + if collection.tag == "VCALENDAR": + components_text = collection.get_meta(human_tag) + if components_text: + components = components_text.split(",") + else: + components = ["VTODO", "VEVENT", "VJOURNAL"] + elif collection.tag == "VADDRESSBOOK" and share_bday_automap: # enforce VEVENT-only components = ["VEVENT"] for component in components: