From 2c13b8d2e03bfeaaf66e6f185b7e2c2f28ae6860 Mon Sep 17 00:00:00 2001 From: MatthewHana Date: Wed, 13 Mar 2024 02:02:23 +1100 Subject: [PATCH] Update propfind.py Don't return getcontentcount prop on leaf or principal collection. --- radicale/app/propfind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index 73c6206d..47773481 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -274,7 +274,7 @@ def xml_propfind_response( is404 = True elif tag == xmlutils.make_clark("RADICALE:getcontentcount"): # Only for internal use by the web interface - if not is_collection or is_leaf: + if is_collection and not collection.is_principal: element.text = str(sum(1 for entry in item.get_all())) else: is404 = True