[CPS-users] Connecting to CPSSharedCalendar using Chandler

Lennart Regebro regebro at nuxeo.com
Thu Dec 7 19:02:32 CET 2006


Erik Harg wrote:
> On Nov 30, 2006, at 9:47 PM, Erik Harg wrote:
> 
>> Well, to get to the point, my hope is that while we're (at least I am) 
>> waiting for the OSAF guys developing Chandler to fix their HTTP URL 
>> behaviour, someone will point me in the right direction for adding 
>> some kind of control on the iCalendar export on the CPS side that will 
>> allow me to get around this problem. Either, I am thinking, through 
>> forcing CPS into the disable_cookie_login mode when the URL contains 
>> the "...calendar/calendar.ics" string, or through some kind of 
>> different URL rewriting method (or what it should be called) that 
>> enables me to use a different URL for the iCalendar export that does 
>> not need the URL parameters (e.g. 
>> ".../calendar/export/calendar.ics"?). So, does anyone care to help me? 
>> Thank you! :-)
> 
> I haven't had time to follow up my own discussion here in the last week, 
> but I'm still looking for input on this. If anyone can help me in 
> successfully writing an extension to CPSSharedCalendar that gives me a 
> URL that implicitly says the same as setting the disable_cookie_login__ 
> parameter, I'd be very grateful!

Oh, sorry, I forgot abut this. I don't think there is another way of 
disabling it, but in fact, it should, for the most time, work even 
without this parameter. The problem is that CookieCrumbler will redirect 
you to the login page if you need to log in, and don't provide 
authentication. Some clients will try to login without authentication 
first, and this will then fail.

If your client sends username and password from the start, it should 
work anyway. Also, if you have read access for anonymous to the 
calendar, it should work, but of course, that measn anyone can read the 
calendar.

The last way to do this is to set up a special port for webdav requests, 
with the <webdav-source-server> section in zope.conf. When accessed via 
that port, cookie-crumbler should never come into use, and it should 
work without the parameter.


-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.nuxeo.org/



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.