From d2811b7fa5b5fe3589f509c02a4316d8c2e3d670 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 29 Apr 2018 21:37:37 +0200 Subject: [PATCH] Check cache lock name space for '/' --- radicale/storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/storage.py b/radicale/storage.py index 5921d26..0cdab80 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -1311,6 +1311,8 @@ class Collection(BaseCollection): @contextmanager def _acquire_cache_lock(self, ns=""): + if "/" in ns: + raise ValueError("ns must not include '/'") with contextlib.ExitStack() as lock_stack: with contextlib.ExitStack() as locks_lock_stack: locks_lock_stack.enter_context(self._cache_locks_lock)