From 89ac2fb3979b11901935f7f3f4964b70d20a6535 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 6 Aug 2016 04:44:18 +0200 Subject: [PATCH] Remove faulty check This should have been (to_path.strip("/")+"/").startswith(path.strip("/")+"/"). But it's not required as we don't support moving collections. --- radicale/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index a126bcf6..2416ce4a 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -473,8 +473,6 @@ class Application: to_path = storage.sanitize_path(to_url.path) if not self._access(user, to_path, "w"): return NOT_ALLOWED - if to_path.strip("/").startswith(path.strip("/")): - return client.CONFLICT, {}, None with self._lock_collection("w", user): item = next(self.Collection.discover(path), None)