mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-16 19:00:54 +00:00
Add missing UIDs instead of failing
This commit is contained in:
parent
019dc7a39c
commit
2b3fd1fb9b
3 changed files with 175 additions and 23 deletions
|
@ -815,8 +815,10 @@ class Application:
|
|||
|
||||
try:
|
||||
items = list(vobject.readComponents(content or ""))
|
||||
for item in items:
|
||||
storage.check_item(item)
|
||||
for i in items:
|
||||
storage.check_and_sanitize_item(
|
||||
i, is_collection=write_whole_collection, uid=item.uid
|
||||
if not write_whole_collection and item else None)
|
||||
except Exception as e:
|
||||
self.logger.warning(
|
||||
"Bad PUT request on %r: %s", path, e, exc_info=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue