From 2c3f74fd419e3083190c68bed94b65ec79fe99ef Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 21 Apr 2026 18:58:40 +0200 Subject: [PATCH] test/sharing: add test case for try to change PathOrToken --- radicale/tests/test_sharing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicale/tests/test_sharing.py b/radicale/tests/test_sharing.py index c7b3ddfc..9d996cc8 100644 --- a/radicale/tests/test_sharing.py +++ b/radicale/tests/test_sharing.py @@ -1427,6 +1427,12 @@ class TestSharingApiSanity(BaseTest): json_dict['PathOrToken'] = path_shared _, headers, answer = self._sharing_api_json("map", "update", check=200, login="owner:ownerpw", json_dict=json_dict) + logging.info("\n*** update map by owner: PathOrToken (json->json) -> 404 (is primary key, therefore not found)") + json_dict = {} + json_dict['PathMapped'] = path_mapped + json_dict['PathOrToken'] = path_shared2 + _, headers, answer = self._sharing_api_json("map", "update", check=404, login="owner:ownerpw", json_dict=json_dict) + logging.info("\n*** update map by owner: PathMapped(owner2) (json->json) -> 403") json_dict = {} json_dict['PathMapped'] = path_mapped_o2