Re: CalDAV and virtual domains not working

2013-07-22 Thread Ken Murchison
Hi Robert,

Bron is correct.  The code isn't doing the right thing for virtdomains, 
mainly because I hadn't bothered to add support for it as I was coding.  
Obviously, this needs to be fixed.  I guess the big question is what the 
URLs should look like.  Should we go with the current URL format and 
encode the '@' as your log entry shows below, or should we do something 
like:

/dav/calendars/domain/fastmail.fm/user/robn/Default/

I think I prefer

/dav/calendars/user/robn%40fastmail.fm/Default/

as long as clients support it.

Bron, any thoughts?


On 07/21/2013 08:53 PM, Robert Norris wrote:
 It looks like the CalDAV stuff is not doing the right thing with virtual
 domains (beta6 and git e415f906)

2013-07-21T20:44:55.580301-04:00 calendar1 calendar/http[30755]: login: 
 vpn94.mail.srv.osa [10.203.0.94] r...@fastmail.fm Basic User logged in
2013-07-21T20:44:55.580929-04:00 calendar1 calendar/http[30755]: 
 mlookup(user.robn@fastmail^fm.#calendars.Default) failed: Mailbox does not 
 exist
2013-07-21T20:44:55.581141-04:00 calendar1 calendar/http[30755]: 
 vpn94.mail.srv.osa [10.203.0.94] as r...@fastmail.fm with Mozilla/5.0 
 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 Lightning/1.9b1; 
 PROPFIND /dav/calendars/user/robn%40fastmail.fm/Default/ HTTP/1.1 (depth=0) 
 = 404 Not Found (error=Mailbox does not exist)

 Mailbox structure via IMAP is:

. LIST  *
* LIST (\HasChildren) . user.r...@fastmail.fm
* LIST (\HasChildren) . user.robn.#calend...@fastmail.fm
* LIST (\HasNoChildren) . user.robn.#calendars.defa...@fastmail.fm
* LIST (\HasNoChildren) . user.robn.#calendars.in...@fastmail.fm
* LIST (\HasNoChildren) . user.robn.#calendars.out...@fastmail.fm

 Bron tells me (if I understood him correctly) that the domain splitting
 is broken, and it should be producing eg
 fastmail.fm!user.robn.#calendars.Default instead.

 Cheers,
 Rob N.
 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
 To Unsubscribe:
 https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: CalDAV and virtual domains not working

2013-07-22 Thread Robert Norris
On Tue, Jul 23, 2013, at 05:58 AM, Ken Murchison wrote:
 I think I prefer

 /dav/calendars/user/robn%40fastmail.fm/Default/

 as long as clients support it.

Yeah, we like this one. Its much clearer for the user.

Can't think of any reason that clients wouldn't support it - URI
escaping is hardly new. Unless calendar clients are especially
braindead? :)

Cheers,
Rob N.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus