Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#93 CalDav Calendar-Query - Tasks not showing - (EWS)

open
nobody
5
2014-03-24
2013-08-05
Khaos
No

Hi. I'm using the latest version of DavMail and connect to a MS Exchange 2010 via EWS.

I'm not getting any calendar-query on VTODOs to work.
Easiest query should be:
<?xml version="1.0" encoding="utf-8" ?>
<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="VTODO"/>
</c:comp-filter>
</c:filter>
</c:calendar-query>

Adding Tasks via the PUT method does work fine.

Discussion

  • Khaos
    Khaos
    2013-08-05

    ... see the attachment for the query

     
    Last edit: Khaos 2013-08-05
    Attachments
  • Khaos
    Khaos
    2013-09-02

    sad face nothing happening here?

     
  • Well, please don't forget this is an OpenSource project...

    Can you provide a log file ?

     
  • Khaos
    Khaos
    2013-10-31

    Sure thing:
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < REPORT /users/xxx/ HTTP/1.1
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < User-Agent: -//Software-Schmiede//CalDavClient
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Depth: 1
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Content-Type: application/xml; charset="utf-8"
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Authorization: **
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Host: swsscm:1080
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Content-Length: 361
    2013-10-31 16:50:20,638 DEBUG [CaldavConnection-52085] davmail - < Expect: 100-continue
    2013-10-31 16:50:20,982 DEBUG [CaldavConnection-52085] davmail.caldav.CaldavConnection - < < ?xml version="1.0" encoding="utf-8" ?>
    < 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="VTODO" />
    < /c:comp-filter>
    < /c:filter>
    < /c:calendar-query>
    2013-10-31 16:50:20,982 DEBUG [CaldavConnection-52085] davmail.exchange.ExchangeSession - Got session davmail.exchange.ews.EwsExchangeSession@1eaa58 from cache
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > HTTP/1.1 207 Multi-Status
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Server: DavMail Gateway 4.3.4-2174
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > DAV: 1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Date: Thu, 31 Oct 2013 15:50:21 +0000
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Expires: Thu, 31 Oct 2013 15:50:21 +0000
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Cache-Control: private, max-age=0
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Transfer-Encoding: chunked
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Content-Type: text/xml;charset=UTF-8
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - > Connection: keep-alive
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail - >
    2013-10-31 16:50:21,028 DEBUG [CaldavConnection-52085] davmail.exchange.ExchangeSession - Shared or public calendar: exclude private events
    2013-10-31 16:50:21,075 DEBUG [CaldavConnection-52085] davmail - > a5
    2013-10-31 16:50:21,075 DEBUG [CaldavConnection-52085] davmail.caldav.CaldavConnection - > < ?xml version="1.0" encoding="UTF-8"?>< D:multistatus xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:E="urn:ietf:params:xml:ns:carddav">< /D:multistatus>
    2013-10-31 16:50:21,075 DEBUG [CaldavConnection-52085] davmail - >
    2013-10-31 16:50:21,075 DEBUG [CaldavConnection-52085] davmail - > 0
    2013-10-31 16:50:21,075 DEBUG [CaldavConnection-52085] davmail - >
    2013-10-31 16:50:23,435 DEBUG [CaldavConnection-52085] davmail - Connection closed

     
    Last edit: Khaos 2013-10-31
  • Khaos
    Khaos
    2014-03-21

    Do you need more?

     
  • Well, Caldav filter implementation is very basic, see CaldavConnection.handleCompFilter, you can use time-range condition.