Commit ca8efa1
feat: check for missing initial recurrence-id
RFC 4791 §9.6.5: non-initial expanded instances MUST include RECURRENCE-ID;
the initial instance MAY omit it. Add a check that queries a range covering
both a regular occurrence (Feb 12) and an exception (Feb 13) with server-side
expand, then reports whether the initial instance includes RECURRENCE-ID.
It was finally decided to add this as annotation in the behaviour
field of the search.recurrences.expanded.event.
The only known instance was Cyrus, but the behaviour was modified
shortly after writing this test. I'm not sure what the author of the
RFC have been thinking about here - in my head it does not make sense
to specifically allow the first recurrence in an expanded recurrence
set to be without a RECURRENCE-ID.
AI-generated.
prompt: make a test in caldav-server-tester to verify the cyrus expansion quirk; also check if there is any other places in the caldav library that needs fixing to reflect that the first instance in a recurrence set may be missing the RECURRENCE-ID
prompt: the checking should still be done, behaviour should still mark this behaviour, only that it should state supported instead of quirk
prompt: search.recurrences.expanded.recurrence-id was added in one of the last commits, it is not defined in compatibility_hints.py in the caldav project and should not exist. Please clean up. The correct behaviour of the checker is to add a behaviour field to search.recurrences.expanded if the first recurrence is missing the recurrence-id field.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 873398d commit ca8efa1
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1368 | 1392 | | |
1369 | 1393 | | |
1370 | 1394 | | |
| |||
0 commit comments