From e07a248451b3ed64d215111df004d22c9c7fdb75 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 24 Nov 2024 18:53:00 +0100 Subject: [PATCH] log if destination directory is not a collection --- radicale/app/put.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/app/put.py b/radicale/app/put.py index fc40f7b4..6f883dca 100644 --- a/radicale/app/put.py +++ b/radicale/app/put.py @@ -176,6 +176,8 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, if write_whole_collection: if ("w" if tag else "W") not in access.permissions: + if not parent_item.tag: + logger.warning("Not a collection (check .Radicale.props): %r", parent_item.path) return httputils.NOT_ALLOWED if not self._permit_overwrite_collection: if ("O") not in access.permissions: