sharing: minor fixes

This commit is contained in:
Peter Bieringer
2026-02-28 22:10:24 +01:00
parent 51fb882cab
commit c8e527fd4a
3 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -135,6 +135,7 @@ class Sharing(sharing.BaseSharing):
Properties = row['Properties']
return {
"mapped": True,
"ShareType": ShareType,
"PathOrToken": PathOrToken,
"PathMapped": PathMapped,
"Owner": Owner,

View File

@@ -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,