Skip to content

Commit

Permalink
log if destination directory is not a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Nov 24, 2024
1 parent 62e6aad commit e07a248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radicale/app/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e07a248

Please sign in to comment.