[Python] Wrong results from CalDAV query

Discussão em 'Python' iniciado por Stack, Setembro 11, 2025.

  1. Stack

    Stack Membro Participativo

    I've got two nextcloud servers. In a python query I can query events for a time span. The query itself is successful. But the found events are strange. There are some results way out of the time span. The query data is:

    <c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav">
    <d:prop><d:getetag /><c:calendar-data /></d:prop>
    <c:filter>
    <c:comp-filter name="VCALENDAR">
    <c:comp-filter name="VEVENT">
    <c:time-range start="20250911T000000" end="20250919T000000"/>
    </c:comp-filter>
    </c:comp-filter>
    </c:filter>
    </c:calendar-query>


    The request is made by:

    requests.request("REPORT", "https://my.nextcloud.de/remote.php/dav/calendars/myUser/myCalendar/", headers={"Depth": "1", "Content-Type": "text/html"}, auth=HTTPBasicAuth(reqName, reqPwd), data=reqData)

    This gives a long list of calDAV data with events from 2024 for example. (These are not repeating events.) Why?

    Continue reading...

Compartilhe esta Página