Просмотр исходного кода

Fix: only expand VEVENT on REPORT request

Peter Bieringer 1 год назад
Родитель
Сommit
59c638461b
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      radicale/app/report.py

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 * Add: option [auth] type=ldap with (group) rights management via LDAP/LDAPS
 * Enhancement: permit_delete_collection can be now controlled also per collection by rights 'D' or 'd'
 * Add: option [rights] permit_overwrite_collection (default=True) which can be also controlled per collection by rights 'O' or 'o'
+* Fix: only expand VEVENT on REPORT request containing 'expand'
 
 ## 3.2.3
 * Add: support for Python 3.13

+ 1 - 1
radicale/app/report.py

@@ -257,7 +257,7 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
                 element.text = item.serialize()
 
                 expand = prop.find(xmlutils.make_clark("C:expand"))
-                if expand is not None:
+                if expand is not None and item.component_name == 'VEVENT':
                     start = expand.get('start')
                     end = expand.get('end')