From a1280dc17c8739192e7c6e6a09a255eebd716e2e Mon Sep 17 00:00:00 2001 From: David Greaves Date: Sun, 13 Jul 2025 18:34:01 +0100 Subject: [PATCH] Guard against entries with no vevent_list in the vobject Signed-off-by: David Greaves --- radicale/app/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/app/report.py b/radicale/app/report.py index 26ad1722..44e41d1e 100644 --- a/radicale/app/report.py +++ b/radicale/app/report.py @@ -310,7 +310,8 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element], found_props.append(expanded_element) else: found_props.append(element) - n_vevents += len(item.vobject_item.vevent_list) + if hasattr(item.vobject_item, "vevent_list"): + n_vevents += len(item.vobject_item.vevent_list) # Avoid DoS with too many events if max_occurrence and n_vevents > max_occurrence: raise ValueError("REPORT occurrences limit of {} hit"