From c8e527fd4a48000bab2353a19eff28c38ed4a332 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sat, 28 Feb 2026 22:10:24 +0100 Subject: [PATCH] sharing: minor fixes --- radicale/app/propfind.py | 5 +++-- radicale/sharing/csv.py | 1 + radicale/sharing/files.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 96a32eae..e4dc299c 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -347,8 +347,9 @@ def xml_propfind_response( if tag_text is not None: if sharing: # map from overlay - if sharing['Properties'][human_tag] is not None: - tag_text = sharing['Properties'][human_tag] + if human_tag in sharing['Properties']: + if sharing['Properties'][human_tag] is not None: + tag_text = sharing['Properties'][human_tag] element.text = tag_text else: is404 = True diff --git a/radicale/sharing/csv.py b/radicale/sharing/csv.py index 543a123b..dd0097fb 100644 --- a/radicale/sharing/csv.py +++ b/radicale/sharing/csv.py @@ -135,6 +135,7 @@ class Sharing(sharing.BaseSharing): Properties = row['Properties'] return { "mapped": True, + "ShareType": ShareType, "PathOrToken": PathOrToken, "PathMapped": PathMapped, "Owner": Owner, diff --git a/radicale/sharing/files.py b/radicale/sharing/files.py index 40dcb7b2..1e584b5c 100644 --- a/radicale/sharing/files.py +++ b/radicale/sharing/files.py @@ -129,6 +129,7 @@ class Sharing(sharing.BaseSharing): logger.debug("TRACE/sharing: map %r to %r (Owner=%r User=%r Permissions=%r Hidden=%s Properties=%r)", PathOrToken, PathMapped, Owner, UserShare, Permissions, Hidden, Properties) return { "mapped": True, + "ShareType": ShareType, "PathOrToken": PathOrToken, "PathMapped": PathMapped, "Owner": Owner,