Skip to content
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

Ensure a trailing slash for CalDAV urls #434

Merged
merged 3 commits into from
May 28, 2024

Conversation

devmount
Copy link
Collaborator

Description of the Change

This change adds a slash / to the end of CalDAV urls, when a CalDAV calendar is added or updated and the given url doesn't already end with one.

I normally test with a public CalDavZIP instance (https://calendar.robur.coop/) but that currently seems to be down. I tested with a NextCloud calendar too and that was working just fine.

Benefits

Less complaints from picky CalDAV servers enforcing a trailing slash.

Applicable Issues

Closes #343

@devmount devmount requested a review from MelissaAutumn May 28, 2024 10:07
@devmount devmount self-assigned this May 28, 2024
Copy link
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks that should do it! But can we centralize that logic in the CalDavConnector constructor? I don't think we need to mutate the url for the database, just adjust it in the constructor so our api calls will always include the slash.

@devmount
Copy link
Collaborator Author

Of course. I thought it was cleaner to have unified urls in the db, but you're right! It's better to leave the user input as is here 👍🏻

@devmount devmount requested a review from MelissaAutumn May 28, 2024 14:08
Copy link
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@devmount devmount merged commit 89d4328 into main May 28, 2024
4 checks passed
@devmount devmount deleted the bugs/343-trailing-slash-for-caldav-urls branch May 28, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure there's a slash at the end of caldav urls
2 participants