mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

only possible to have one users access it's calendar? #75

Closed f1-outsourcing closed 5 months ago

f1-outsourcing commented 5 months ago

https://github.com/1and1/cosmo/pull/33

I don't really get this "beyond cosmo's purpose", why would scheduling be not be interesting to add? The same is with this group-membership ( I don't really know what this is, I assume you can grant access to your calendar etc)

I would like to maintain a calendar on the phone/desktop that is being published on a website. Is this even possible with cosmo to have read only access to a specific user calendar?

danielgrigore commented 5 months ago

Scheduling implies email sending. You want the attendees to accept/tentative/deny the invitations. Implementing an email service has a lot of implications (like SMTP server, templates for messages etc.) For this reason it won't be implemented directly in cosmo because the implementation would be too specific. There's the possibility to extend cosmo by adding EventHandlers like the ones in cosmo demo webapp. Each implementation could extend cosmo by adding the desired extra behavior.

The sharing scenario above is not possible in cosmo, but again you could extend the application by adding your own http servlet that serves ICS content of calendar or any other format you may need.

Cheers,

f1-outsourcing commented 5 months ago

The sharing scenario above is not possible in cosmo, but again you could extend the application by adding your own http servlet that serves ICS content of calendar or any other format you may need.

Can you help explain a bit more? Years ago I was testing with this apple calendarserver implementation in python. If I remember correctly you could allow other users to access calendars and set some sort of authorisations. I don't really get what this @pashazz from this pull request did wrong, except for that he was using webdav. How should this be implemented so a pull request would be accepted?

f1-outsourcing commented 5 months ago

I am interested in being able to share the calendar with the website (obviously read only). I would appreciate your advice on how to do this best?

f1-outsourcing commented 5 months ago

I am also interested in maybe syncing calendars between a external caldav server and cosmo.

danielgrigore commented 5 months ago

For your sharing use-case I would go with Ticket and CollectionItem classes and a custom servlet (as mentioned above) to check the the privileges and serve the content.