Shared Radicale calendars & AgenDAV?

717 views
Skip to first unread message

Peter Uithoven

unread,
Dec 3, 2012, 7:18:46 PM12/3/12
to agendav...@googlegroups.com
Did anyone get shared calendars working from Radicale in AgenDAV? 

We are trying to check where it goes wrong, in the following hack

It appears the following request gives 401 statuses. 
$xml = $C->DoPROPFINDRequest( $principal_url, array(

Best regards, 
Peter Uithoven

Peter Uithoven

unread,
Dec 3, 2012, 7:30:26 PM12/3/12
to agendav...@googlegroups.com
This is the result of that request:

<?xml version="1.0"?>
<D:multistatus xmlns:D="DAV:">
  <D:response>
    <D:href>/peter/</D:href>
    <D:propstat>
      <D:prop />
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <D:propstat>
      <D:prop>
        <CS:calendar-proxy-read-for xmlns:CS="http://calendarserver.org/ns/" />
        <CS:calendar-proxy-write-for xmlns:CS="http://calendarserver.org/ns/" />
      </D:prop>
      <D:status>HTTP/1.1 404 Not Found</D:status>
    </D:propstat>
  </D:response>
  <D:response>
    <D:href>/peter/C133DE72-4FCB-44BF-840B-F26B9F5B65FA/</D:href>
    <D:propstat>
      <D:prop />
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <D:propstat>
      <D:prop>
        <CS:calendar-proxy-read-for xmlns:CS="http://calendarserver.org/ns/" />
        <CS:calendar-proxy-write-for xmlns:CS="http://calendarserver.org/ns/" />
      </D:prop>
      <D:status>HTTP/1.1 404 Not Found</D:status>
    </D:propstat>
  </D:response>
  <D:response>
    <D:href>/peter/personal/</D:href>
    <D:propstat>
      <D:prop />
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <D:propstat>
      <D:prop>
        <CS:calendar-proxy-read-for xmlns:CS="http://calendarserver.org/ns/" />
        <CS:calendar-proxy-write-for xmlns:CS="http://calendarserver.org/ns/" />
      </D:prop>
      <D:status>HTTP/1.1 404 Not Found</D:status>
    </D:propstat>
  </D:response>
</D:multistatus>

Best regards, 
Peter Uithoven 

Jorge López Pérez

unread,
Dec 4, 2012, 2:19:48 AM12/4/12
to agendav...@googlegroups.com
Hi Peter,

El 04/12/12 01:18, Peter Uithoven escribió:
The patch on that message enables calendar-proxy support on AgenDAV,
also called 'calendar delegation'. Calendar delegation is mainly used by
iCal.

AFAIK Radicale doesn't support calendar-proxy, so I don't think you can
make it work.

Currently AgenDAV uses a different approach for shared calendars. A
shared calendar is just a regular calendar that has some ACLs set to
allow one or more users to read/write on it. AgenDAV saves a reference
to this calendar (i.e. its URL) and the other user has direct access to it.

Unfortunately, seems that Radicale doesn't have full ACL support
(http://radicale.org/technical_choices/#protocols-and-formats states
that), so I'm not sure if you will be able to share a calendar in the
usual way.

Regards.

--
Jorge López Pérez
http://adobo.org
jabber: jor...@jabberes.org

Peter Uithoven

unread,
Dec 5, 2012, 7:48:39 PM12/5/12
to agendav...@googlegroups.com
We got it working with even more hacks, building on the following earlier mentioned hack. 
https://groups.google.com/forum/?fromgroups=#!topic/agendav-dev/qBIAnXm8i3g

Worst thing is that I needed to add the name of the shared calender hardcoded into the code. 

I changed the following files:
web/application/libraries/Caldav.php 
web/application/controllers/calendar.php 

It's probably the worst hack ever, but if it will help someone, it's better than nothing. 
Maybe it will inspire someone to write a better fix. 

Best regards, 
Peter Uithoven 
Caldav.php
calendar.php

Peter Uithoven

unread,
Dec 6, 2012, 11:49:57 AM12/6/12
to agendav...@googlegroups.com
Small update. 

I changed the following files:
web/application/libraries/Caldav.php 
web/application/controllers/calendar.php 
web/application/controllers/dialog_generator.php 

Peter 
calendar.php
Caldav.php
dialog_generator.php
Reply all
Reply to author
Forward
0 new messages