You need to sign in or sign up before continuing.
Timerange search yielding too many objects
(This bug description has been edited, new example that contains less irrelevant information)
I have one yearly one-day event in November on the calendar. When doing a time-range search for some few days in July for a specific year, the November-event shows up - but it should not. Example:
REPORT https://davical.bekkenstenveien53c.oslo.no:443/caldav.php/testaccount1/pythoncaldav-test/
Depth: 1
Content-Type: application/xml; charset="utf-8"
<?xml version='1.0' encoding='utf-8'?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20060713T110000Z" end="20060715T110000Z"/>
<C:prop-filter name="CATEGORIES">
<C:text-match collation="i;octet">PERSONAL</C:text-match>
</C:prop-filter>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
<====
207 Multi-Status
Date: Thu, 26 Jan 2023 10:29:50 GMT
Content-Type: text/xml; charset="utf-8"
Content-Length: 725
Connection: close
X-Powered-By: PHP/8.2.1
Server: 1.1
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
ETag: "fec0c4976df55ddd636417157714b323"
X-DAViCal-Version: DAViCal/1.1.11; DB/1.3.3
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/testaccount1/pythoncaldav-test/19970901T130000Z-123403%40example.com.ics</href>
<propstat>
<prop>
<C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
SUMMARY:Our Blissful Anniversary
DTSTART;VALUE=DATE:19971102
DTSTAMP:19970901T130000Z
UID:19970901T130000Z-123403@example.com
RRULE:FREQ=YEARLY
CATEGORIES:ANNIVERSARY,PERSONAL,SPECIAL OCCASION
CLASS:CONFIDENTIAL
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
</C:calendar-data>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
Edited by Tobias Brox