[CalendarServer-users] REPORT request and iCal Server

Cyrus Daboo cdaboo at apple.com
Fri Oct 26 13:15:46 PDT 2007


Hi Pascal,

--On October 26, 2007 3:42:20 PM -0400 Pascal Robert <probert at os.ca> wrote:

> I'm trying to talk to iCal Server from a WebObjects app with CalDAV4J
> (Java API from the Chandler Project).  I can connect and get a specific
> calendar, but I'm trying to do a REPORT request:
>
> 	REPORT /calendars/users/diradmin/calendar/ HTTP/1.1
>
> and I'm getting a 401 HTTP error:
>
> 	HTTP/1.1 401 Unauthorized
> 	WWW-Authenticate: digest nonce="174385117913098369521756197356",
> realm="/Search", algorithm="md5"
>
> In the Chandler examples, they are querying "/cosmo/dav/test/collection",
> so I guess I'm not querying the good thing or I don't understand the
> REPORT query.  What is the correct URL for a REPORT query ?

Actually the error is caused by you trying to access a protected resource 
without authentication. The server is responding with the proper 401 code 
plus a WWW-Authenticate header that should trigger your client library to 
authenticate.

Perhaps CalDAV4J does not support digest authentication, which is the only 
one being advertised by the server? If so, you will need to manually edit 
the server's caldavd.plist configuration file and enable Basic 
authentication (which I am guessing CalDAV4J does support).

-- 
Cyrus Daboo



More information about the calendarserver-users mailing list