sharing/propfind: fix backmapping

This commit is contained in:
Peter Bieringer
2026-03-15 18:11:07 +01:00
parent 3deeb7a16c
commit f3426b186b

View File

@@ -117,7 +117,7 @@ def xml_propfind_response(
if logger.isEnabledFor(logging.DEBUG):
logger.debug("TRACE/PROPFIND/xml_propfind: PathMapped=%r uri=%r", shares[entry]['PathMapped'], uri)
if uri.startswith(shares[entry]['PathMapped']):
if sharetype is None or shares[entry]['ShareType'] == sharetype:
if sharetype is not None and shares[entry]['ShareType'] == sharetype:
share = shares[entry]
if logger.isEnabledFor(logging.DEBUG):
logger.debug("TRACE/PROPFIND/xml_propfind: found share=%r", share)