Author Topic: Unable to delete CalDAV calendar events  (Read 6172 times)

Offline tonytone

  • Newbie
  • *
  • Posts: 1
Unable to delete CalDAV calendar events
« on: December 11, 2011, 08:58:29 AM »
I've installed the calendar plugin and have it working for 95%. For some reason however removing events only results in the event being removed from the database. Even though the DELETE request is send and responded to with status 200 by the CalDAV server, please see logs below;

Quote
davmail  - Connection from /192.168.0.9 on port 1080
davmail  - < DELETE /users/@/calendar/4D03B104-FCEB-4C7C-80E2-2140C56CE47C HTTP/1.1
davmail  - < Host: dev.:1080
davmail  - < Accept: */*
davmail  - < Content-Length: 0
davmail  - < Content-Type: application/x-www-form-urlencoded
davmail.caldav.CaldavConnection  - <
davmail  - > HTTP/1.1 401 Unauthorized
davmail  - > WWW-Authenticate: Basic realm="DavMail Gateway"
davmail  - > Connection: keep-alive
davmail  - > Content-Length: 0
davmail  - >
davmail  - < DELETE /users/@/calendar/4D03B104-FCEB-4C7C-80E2-2140C56CE47C HTTP/1.1
davmail  - < Authorization: ********
davmail  - < Host: dev.:1080
davmail  - < Accept: */*
davmail  - < Content-Length: 0
davmail  - < Content-Type: application/x-www-form-urlencoded
davmail.caldav.CaldavConnection  - <
davmail.exchange.ExchangeSession  - Got session davmail.exchange.ews.EwsExchangeSession@1016632 from cache
davmail  - > HTTP/1.1 200 OK
davmail  - > Server: DavMail Gateway 3.9.6-trunk
davmail  - > DAV: 1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook
davmail  - > Date: Sun, 11 Dec 2011 13:49:13 +0000
davmail  - > Expires: Sun, 11 Dec 2011 13:49:13 +0000
davmail  - > Cache-Control: private, max-age=0
davmail  - > Connection: keep-alive
davmail  - > Content-Length: 0
davmail  - >

The sole differences i've seen between the calendar plugins request and for instance iCal in OSX Lion is that the plugin uses the UID i.e. "4D03B104-FCEB-4C7C-80E2-2140C56CE47C" to target the resource and iCall targets that same resource like "New%20Event.EML", after which it is deleted properly and the "If-Match" header which isn't present in the plugins request. Please see iCal log below:

Quote
davmail  - < DELETE /users/@/calendar/New%20Event.EML HTTP/1.1
davmail  - < Host: dev.:1080
davmail  - < User-Agent: CalendarStore/5.0.1 (1139.14); iCal/5.0.1 (1547.4); Mac OS X/10.7.2 (11C74)
davmail  - < Content-Length: 0
davmail  - < Accept: */*
davmail  - < Accept-Language: en-us
davmail  - < Accept-Encoding: gzip, deflate
davmail  - < If-Match: 2011-12-11T00:45:56Z
davmail  - < Authorization: ********
davmail  - < Connection: keep-alive
davmail.caldav.CaldavConnection  - <
davmail.exchange.ExchangeSession  - Got session davmail.exchange.ews.EwsExchangeSession@1016632 from cache
davmail  - > HTTP/1.1 200 OK
davmail  - > Server: DavMail Gateway 3.9.6-trunk
davmail  - > DAV: 1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook
davmail  - > Date: Sun, 11 Dec 2011 14:11:36 +0000
davmail  - > Expires: Sun, 11 Dec 2011 14:11:36 +0000
davmail  - > Cache-Control: private, max-age=0
davmail  - > Connection: keep-alive
davmail  - > Content-Length: 0
davmail  - >

Would it be possible to have the calendar plugin target the resource with its HREF value in stead of UID?
« Last Edit: December 11, 2011, 12:41:57 PM by tonytone »