Kozea / Radicale

A simple CalDAV (calendar) and CardDAV (contact) server.
https://radicale.org
GNU General Public License v3.0
3.38k stars 442 forks source link

Get Eventlist within Dateperiod #778

Closed KlausReitzmann closed 7 months ago

KlausReitzmann commented 6 years ago

the follwing request was sent to radicale by a Python caldav file intending to get the Events on Feb 02 2018. Instead i get the entire calendar as result. is it as bug or something wrong with the request.

REPORT /home/test.ics/ HTTP/1.1
Host: xxx:5232
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/xml
User-Agent: Mozilla/5.0
Depth: 1
Content-Type: application/xml; charset="utf-8"
Content-Length: 439

<?xml version='1.0' encoding='utf-8'?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV">
<ns0:prop xmlns:ns0="DAV:"><C:calendar-data>
<C:expand start="20180202T000000Z" end="20180203T000000Z"/>
</C:calendar-data></ns0:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20180202T000000Z" end="20180203T000000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>

the Python is :


client = caldav.DAVClient(url)
principal = client.principal()
calendars = principal.calendars()
if len(calendars) > 0:
    cal=calendars[0]
    results = cal.date_search( datetime(2018, 2, 2), datetime(2018, 2, 3))
    for event in results:
         print "Found"
         print event

hope someone can help me regard klaus

Unrud commented 6 years ago

Radicale doesn't support expanding recurring components. There is already a feature request: #662

The filter itself seems to work fine with the current release.

pbiering commented 7 months ago

Support is now implemented by https://github.com/Kozea/Radicale/pull/1292, please try master branch and file comment on PR if still a problem