sharing/propfind/owner: return empty element in case of a mapped share / clients try PROPFIND on this not accessable href

This commit is contained in:
Peter Bieringer
2026-05-15 07:49:19 +02:00
parent 4fa6ffe82e
commit 23a2c43e68

View File

@@ -395,7 +395,8 @@ def xml_propfind_response(
is404 = True
elif tag == xmlutils.make_clark("D:owner"):
# return empty elment, if no owner available (rfc3744-5.1)
if collection.owner:
# return empty element in case of a mapped share / clients try PROPFIND on this not accessable href
if collection.owner and not share:
child_element = ET.Element(xmlutils.make_clark("D:href"))
child_element.text = xmlutils.make_href(
base_prefix, "/%s/" % collection.owner)