Hi Olivier, Correct me if I'm wrong, but I suspect you should be publishing your agenda to a collection not a principal: https://login@...> should be: https://login@...> where "login" is your username and "calendar" is your calendar collection. Kind Regards, Tim On 29/11/11 10:06, Olivier De Marchi wrote: > Hi > > I would like to publish a local agenda on server but it doesn't work. > > With clients : Lightning 1.0 or ical 4.04, I still have the same error : > https://login@...> > 405 : Method Not Allowed > > On my serveur > /var/log/apache2/error.log > :***************** Response Header **************** > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->X-Powered-By: PHP/5.2.6-1+lenny13 > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->Server: 0.9 > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->DAV: extended-mkcol, calendar-proxy, bind, addressbook, > calendar-auto-schedule > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->X-DAViCal-Version: DAViCal/0.9.9; DB/1.2.11 > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > headers:-->Content-type: text/plain; charset="utf-8" > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > :******************** Response ******************** > [Tue Nov 29 10:34:49 2011] [error] [client XXXXXX] davical: LOG: > response:--> > > > however, this feature worked a few months ago. > I think the error occurred after an update. > > any idea ? > > Olivier > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Davical-general mailing list > Davical-general@... > https://lists.sourceforge.net/lists/listinfo/davical-general
> https://login@...> > should be: > https://login@...> > where "login" is your username and "calendar" is your calendar collection. Yes, you're right. I think it worked well before (without the collection). So, now it works when I created the collection in the web interface before publication. Thank you ! Is it possbile to create the collection directly (without web interface) ? olivier
On 29/11/11 15:00, Olivier De Marchi wrote: >> https://login@...> >> should be: >> https://login@...> >> where "login" is your username and "calendar" is your calendar collection. > Yes, you're right. > I think it worked well before (without the collection). > So, now it works when I created the collection in the web interface > before publication. Thank you ! > I would have thought the various clients that support the MKCALENDAR or MKCOL method would do it. If you want to do it with a script, I would probably try a combination of curl and this part of the rfc: for MKCALENDAR http://tools.ietf.org/html/rfc4791#section-5.3.1 or for MKCOL http://tools.ietf.org/html/rfc5689#section-4.1 Kind Regards, Tim
On Tue, 2011-11-29 at 16:00 +0100, Olivier De Marchi wrote: > > https://login@...> > > should be: > > https://login@...> > > where "login" is your username and "calendar" is your calendar collection. > > Yes, you're right. > I think it worked well before (without the collection). > So, now it works when I created the collection in the web interface > before publication. Thank you ! I think there was a very old version where it might have worked directly on the principal. If what you are trying to achieve is a rollup of all of the sub-collections, then there is a sneaky little config variable you can use which is: $c->get_includes_subcollections = 1; This will mean that a GET on the /caldav.php/principal/ will return a calendar combining all of the sub-collections. > Is it possbile to create the collection directly (without web interface)? The MKCALENDAR request is pretty trivial. In the simple case you can just use that method on the URL to the calendar you want to create. Cheers, Andrew. -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN Open Source: the difference between trust and antitrust ------------------------------------------------------------------------