adobo/agendav — Issue #20: Latest Git version doesn't work with calendarserver
Author: oliver
Created: 2011-12-14 23:23:07+00:00
State: open

When using current Git HEAD with calendarserver (2.4.dfsg-6 from Debian Squeeze), AgenDAV fails to load calendar contents, with error message:

"Interface error
Error loading events from calendar oliver:calendar"

It shows the calendar (displayname and color) but no events; so basic communication works.

Also, it works fine with version 1.2.3.

Log from AgenDAV shows this:
ERROR - 2011-12-15 00:15:44 --> Invalid CalDAV server
ERROR - 2011-12-15 00:15:44 --> oliver@192.168.0.86 Possible invalid CalDAV server [caldav2json/events]

Log from calendarserver shows this:
192.168.0.43 - oliver [15/Dec/2011:00:15:39 +0200] "OPTIONS /calendars/users/oliver/ HTTP/1.1" 200 0 "-" "DAViCalClient" i=8008 t=69.8 or=1
192.168.0.43 - oliver [15/Dec/2011:00:15:43 +0200] "PROPFIND /calendars/users/oliver/ HTTP/1.1" 207 3343 "-" "DAViCalClient" i=8008 t=86.2 or=1
192.168.0.43 - - [15/Dec/2011:00:15:44 +0200] "OPTIONS /calendars/users/oliver/calendar HTTP/1.1" 301 175 "-" "DAViCalClient" i=8008 t=35.9 or=1

I would guess the HTTP 301 redirect is a problem. Maybe it happens due to commit 803b5e683cb1fb31be02b1e25a96d7a15eccc139 which wasn't present in version 1.2.3. Also, that version showed similar problems with HTTP 301 in other places (PROPPATCH).