-
-
Notifications
You must be signed in to change notification settings - Fork 35
[Chore] Fix public calendar behavior #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
a555baa to
7f42840
Compare
3a0895f to
831d7fb
Compare
831d7fb to
610a8a5
Compare
|
Linked to Davis Roadmap too |
@1Luc1 You test on Thunderbird, right? Do you have an option to "subscribe" to a calendar instead ("New Calendar Subscription" on iCal on macOs)? If yes, could you test if this works for the read only part? |
Yes I tested on Thunderbird. Within Thunderbird you subscribe to a calendar. Button is called "New Calendar ..." . I have a user test with a public calendar pubTest: And I want to subscribe to this public calendar as a "outside" user within Thunderbird: But it does ask for the credentials. As I understand it, it should be possible to subscribe to the calendar without credentials as read only - public calendar that is. I also tried something, don't know if this helps, but if I open the URI within the browser a popup opens to enter login credentials and if i cancel the following error appears:
|
8920484 to
3e8cc75
Compare
Ok thanks. I've pushed a change just now as it seems sabre/dav treats most things as shared calendars under the hood, can you retry? I successfully subscribe to the calendar (or load it in a browser), while retaining write rights as owner |
|
Thanks. Now it never asks for a password. And if the calendar is subscribed it will be set as read only, but "readonly" can be unset and then events can be added to the calendar without the need of any credentials.
Initial Implementation/Test/PR: #105 (comment) |
|
And finally, I cannot modify or change things (when unauthenticated): |
Ok I'm relieved, it was driving me crazy ! |
This might be a specific behaviour of Thunderbird (I don't have this kind of thing on macOS or iOS for instance). To be honest I don't understand the "read only" checkbox on Thunderbird: if the calendar is read only, why having a check box you can change on the client side? Seems a bit odd to me. In any case it might come from how Thunderbird interprets the ACLs and "deduce" stuff from it. You can try to fiddle around with the code in here (maybe change "unauthenticated" to "all"?) but I wouldn't bet on the fact that it changes anything. |
|
Just tested on my side, the read-only property is correctly set as non-existant when auth is passed, so it's a Thunderbird (cache?) issue: (see the |







Important
This PR contains a migration, that you need to run to be able to test the code. The migration is backwards compatible (meaning that running it adds a column, that is ignored if you rollback on an earlier version of the code)