| Author |
Message |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 18/03/2008 09:23:31
|
tolsen
Joined: 18/03/2008 08:44:10
Messages: 3
Offline
|
I am trying to debug problems I'm having with Calgoo Hub's CalDAV support.
Calgoo gave me a url of http://hub.calgoo.com/cal/tolsen/
However, the following OPTIONS requests to hug.calgoo.com all give back 404:
OPTIONS * HTTP/1.1
OPTIONS /cal/ HTTP/1.1
OPTIONS /cal/tolsen HTTP/1.1
Is the service down right now?
Thanks,
Tim
|
|
|
 |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 18/03/2008 10:32:41
|
Help Me Owl
Joined: 24/08/2006 23:30:17
Messages: 1567
Offline
|
tolsen
Currently, Calgoo supports CalDav for Outlook2007, App iCal and Sunbird protocol only.
Could you please tell us what application you are using?
Thanks
Help Me Owl
|
HOW TO: Post a well formed bug report and attach your Calgoo log files |
|
|
 |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 18/03/2008 11:31:16
|
tolsen
Joined: 18/03/2008 08:44:10
Messages: 3
Offline
|
I was using Sunbird and then realized that you're instructions were probably just for doing a PUT via WebDAV.
Your instructions mention publishing an ics file. This suggests that you do not really support CalDAV. In CalDAV, a calendar is a type of collection resource (i.e. a directory) with events as resources under that collection.
There are other things that suggest you are not supporting CalDAV. Just glancing at the CalDAV RFC (http://greenbytes.de/tech/webdav/rfc4791.html), I see the following two problems so far:
1. hub.calgoo.com is not listening on port 443 which tells me there is no TLS support. CalDAV requires TLS (http://greenbytes.de/tech/webdav/rfc4791.html#requirements)
2. The HTTP method OPTIONS gives back 404 as shown above. OPTIONS is how a CalDAV client discovers that your server is CalDAV capable. See http://greenbytes.de/tech/webdav/rfc4791.html#rfc.section.5.1
When trying to create a CalDAV calendar, I get the following from Sunbird 0.7:
"The resource at http://hub.calgoo.com/cal/tolsen/ is either not a DAV collection or not available"
Real CalDAV support implements RFC 4791, 3744 (WebDAV ACLs), and 2518 /4918 (Basic WebDAV). This means support for MKCALENDAR, REPORT, and ACL requests in addition to the basic WebDAV methods.
However, I think there might be a problem with just the basic WebDAV support or the creation of my calendar account. A GET of /cal/tolsen/ returns a 404. By RFC 2518/4918, this means that a PUT to say a calendar at /cal/tolsen/Birthdays.ics should fail with a 409 (http://greenbytes.de/tech/webdav/rfc4918.html#METHOD_PUT)
When trying to just publish a calendar using Sunbird 0.7 to http://hub.calgoo.com/cal/tolsen/, Sunbird asks for my credentials and then freezes. Maybe Sunbird is not reacting well to a 409? I'll fire up WireShark to see what's being sent over the wire.
|
|
|
 |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 18/03/2008 12:03:12
|
tolsen
Joined: 18/03/2008 08:44:10
Messages: 3
Offline
|
ok, the publishing calendar problem does work. Your server is giving back a 201, but Sunbird gives no notice that it completes.
Anyway, the question of real CalDAV support still remains. Again, storing an ics file is not CalDAV support. I tried a few things to see if you do support CalDAV.
First an OPTIONS request:
Code:
tolsen@neurofunk:~$ telnet hub.calgoo.com 80
Trying 209.17.191.158...
Connected to hub.calgoo.com.
Escape character is '^]'.
OPTIONS /cal/tolsen/home.ics HTTP/1.1
Host: hub.calgoo.com
Authorization: Basic [elided]
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Allow:
Date: Tue, 18 Mar 2008 18:49:12 GMT
Server: Noelios-Restlet-Engine/1.0.5
Transfer-Encoding: chunked
0
As you can see, your Allow header is completely empty and there is not even a Dav header.
Trying a similar request on /cal/tolsen/ gives back a 404 which suggests that it is not a a CalDAV calendar. So then I tried to see if maybe I needed to create a calendar under that collection:
Code:
tolsen@neurofunk:~$ telnet hub.calgoo.com 80
Trying 209.17.191.158...
Connected to hub.calgoo.com.
Escape character is '^]'.
MKCALENDAR /cal/tolsen/newcalendar HTTP/1.1
Host: hub.calgoo.com
Authorization: Basic [elided]
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Date: Tue, 18 Mar 2008 18:58:20 GMT
Server: Noelios-Restlet-Engine/1.0.5
Transfer-Encoding: chunked
0
Connection closed by foreign host.
tolsen@neurofunk:~$
Hmm.. 200 is not a valid return code for MKCALENDAR. If the request succeeds, the response should be 201 (see http://greenbytes.de/tech/webdav/rfc4791.html#rfc.section.5.3.1.1).
Assuming that the request did succeed, I'll try an OPTIONS request on my new CalDAV calendar:
Code:
tolsen@neurofunk:~$ telnet hub.calgoo.com 80
Trying 209.17.191.158...
Connected to hub.calgoo.com.
Escape character is '^]'.
OPTIONS /cal/tolsen/newcalendar HTTP/1.1
Host: hub.calgoo.com
Authorization: Basic [elided]
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Allow:
Date: Tue, 18 Mar 2008 19:01:45 GMT
Server: Noelios-Restlet-Engine/1.0.5
Transfer-Encoding: chunked
0
Again, the Allow header is empty telling me nothing about what my CalDAV calendar supports.
So I attempt a PROPFIND propname request on my new calendar.
Code:
tolsen@neurofunk:~$ telnet hub.calgoo.com 80
Trying 209.17.191.158...
Connected to hub.calgoo.com.
Escape character is '^]'.
PROPFIND /cal/tolsen/newcalendar HTTP/1.1
Host: hub.calgoo.com
Depth: 0
Authorization: Basic [elided]
Content-Length: 85
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Date: Tue, 18 Mar 2008 19:07:02 GMT
Server: Noelios-Restlet-Engine/1.0.5
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 331
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The server has not found anything matching the request URI</h3><p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5">here</a>.<br/>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
The server responds with a 404 before I even get a chance to type in the PROPFIND body.
Here are my conclusions:
1. You support PUT (which is part of HTTP/1.1)
2. Your CalDAV support is non-existant
3. Your WebDAV support is also non-existant.
|
|
|
 |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 18/03/2008 15:00:36
|
Help Me Owl
Joined: 24/08/2006 23:30:17
Messages: 1567
Offline
|
tolsen,
You are right, we do not currently support MKCALENDAR or OPTIONS. Our support is targeted towards Outlook 2007, iCal, and "calendar publishing" only for Sunbird.
However, PROPFIND works as long as the calendar exists. I did a quick look and it seems like /cal/tolsen/newcalendar does not exist. That would be the reason for the 404.
I am interested in talking to you further about this, please check your PM.
|
HOW TO: Post a well formed bug report and attach your Calgoo log files |
|
|
 |
![[Post New]](/JForum-2.1.6/templates/default/images/icon_minipost_new.gif) 12/08/2008 15:41:11
|
Help Me Owl
Joined: 24/08/2006 23:30:17
Messages: 1567
Offline
|
CalDAV support released on Aug 12, 2008
http://www.calgoo.com/JForum-2.1.6/posts/list/911.page
Thanks
Help Me Owl
|
HOW TO: Post a well formed bug report and attach your Calgoo log files |
|
|
 |
|
|