From 14f0fa5fa44bf67bce94cb95cd56a07909c56481 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 4 May 2026 21:37:11 +0200 Subject: [PATCH] propfind/sharing: fix support for single item request --- radicale/app/propfind.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 7c7ee449..32e9cbf4 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -226,7 +226,17 @@ def xml_propfind_response( is404 = False if tag == xmlutils.make_clark("D:getetag"): if not is_collection or is_leaf: - element.text = item.etag + if isinstance(item, storage.BaseCollection): + element.text = item.etag + else: + if share_bday_automap: + item_converted = item.convert_vcf_to_ics() + if item_converted: + element.text = item_converted.etag + else: + is404 = True + else: + element.text = item.etag else: is404 = True elif tag == xmlutils.make_clark("D:getlastmodified"):