Radicale icon indicating copy to clipboard operation
Radicale copied to clipboard

Advertise WebCal calendar URLs (feature request)

Open belidzs opened this issue 7 years ago • 13 comments

According to this a CalDav server can advertise Webcal calendars. These are typically used to access read-only, shared calendars.

DAVdroid recognizes Webcal calendars in the calendar home set which are published with resourcetype: subscribed and shows them in the DAVdroid account activity. If you select such a Webcal collection for synchronization, DAVdroid passes the URL to an installed Webcal-capable app like ICSdroid so that this app can subscribe to the calendar.

It would be nice if I could add these calendar URLs to my account so DAVdroid and other clients would display those extra calendars automagically.

belidzs avatar Jan 27 '18 19:01 belidzs

Would be really great to see this functionality added!

Some research (e.g. here) showed me the "advertisement" should at least contain the following xml:

 <d:response>
  <d:href>/<user>/<calendar-name>/</d:href>
  <d:propstat>
   <d:prop>
    <d:resourcetype>
     <d:collection/>
     <cs:subscribed/>
    </d:resourcetype>
    <cs:source>
     <d:href>http://www.somesite.com/public-calendar.ics</d:href>
    </cs:source>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>

So, instead of <c:calendar/>, it should contain <cs:subscribed/> and an <cs:source> tag for specifying the (public) ics file. (Where 'cs' would be the calendarserver namespace, e.g. xmlns:cs="http://calendarserver.org/ns/".)

ialokim avatar Jun 07 '19 19:06 ialokim

The subscribed calendars could be stored inside a single .props file in the root of each collection (e.g. .subscriptions.props).

Like this each user could have their own subscriptions in a multi user instance - given that each collection refers to one user.

leso-kn avatar Apr 24 '20 20:04 leso-kn

Any update on this? @Kozea

leso-kn avatar Nov 08 '20 11:11 leso-kn

I second the request.

dorchain avatar Apr 11 '21 07:04 dorchain

I, too, second the request.

MrPixelized avatar Sep 09 '21 11:09 MrPixelized

Any update on this?

miklcct avatar Oct 18 '21 17:10 miklcct

Came here to leave a comment, this feature would be highly appreciated!

maartenweyns avatar Feb 06 '22 14:02 maartenweyns

I would also really like this feature.

tunbridgep avatar Mar 09 '22 14:03 tunbridgep

Update: This issue has been open for a while and I finally found some time to look into it again. I'd like to present a proposed implementation over at PR #1229.

Note: For the moment webcal subscriptions have to be added manually. The PR adds the relevant backend functionality for Radicale to advertise webcal subscriptions, internally stored as collections. A second step would be to add a more user-friendly way to add those subscriptions (e.g. via the Radicale web interface).

leso-kn avatar Mar 28 '22 17:03 leso-kn

Wow! I'm really shocked to see that the changes are that simple. Great work! :D

MrPixelized avatar Mar 30 '22 18:03 MrPixelized

This is the only feature missing, for me, in this great project.

mmBesar avatar Nov 17 '22 17:11 mmBesar

I second the request. There are still many people waiting for this feature after such a long time, I believe this feature needs to be put on the agenda.

JadeVane avatar Sep 02 '23 08:09 JadeVane

@Kozea can we at least merge the PR leso-kn #1229?

I second this FR

6801318d8d avatar Oct 12 '23 11:10 6801318d8d

https://github.com/Kozea/Radicale/pull/1229 merged into 3.2-devel

pbiering avatar Mar 03 '24 09:03 pbiering