1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-16 19:00:54 +00:00

add for write requests "path" where missing and "request"

This commit is contained in:
Peter Bieringer 2025-08-12 16:11:24 +02:00
parent 0c16f86bd4
commit 19def4d561
6 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ class ApplicationPartMkcol(ApplicationBase):
if not props.get("tag") and "W" not in permissions:
logger.warning("MKCOL request %r (type:%s): %s", path, collection_type, "rejected because of missing rights 'W'")
return httputils.NOT_ALLOWED
with self._storage.acquire_lock("w", user):
with self._storage.acquire_lock("w", user, path=path, request="MKCOL"):
item = next(iter(self._storage.discover(path)), None)
if item:
return httputils.METHOD_NOT_ALLOWED