From a5716a7d848cc5129fe82a89b37757da10de8209 Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 20 Apr 2022 17:23:35 +0200 Subject: [PATCH] Fix random href fallback --- radicale/storage/multifilesystem/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/storage/multifilesystem/upload.py b/radicale/storage/multifilesystem/upload.py index 306b85e5..730e4cb2 100644 --- a/radicale/storage/multifilesystem/upload.py +++ b/radicale/storage/multifilesystem/upload.py @@ -71,7 +71,8 @@ class CollectionPartUpload(CollectionPartGet, CollectionPartCache, radicale_item.get_etag(uid).strip('"') + suffix]: if is_safe_free_href(href): yield href - yield radicale_item.find_available_uid(is_safe_free_href, suffix) + yield radicale_item.find_available_uid( + lambda href: not is_safe_free_href(href), suffix) cache_folder = os.path.join(self._filesystem_path, ".Radicale.cache", "item")