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

[stable29] fix(settings): make trailing slash for caldav/carddav redirects optional #46093

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jun 25, 2024

Backport of PR #46079

@blizzz blizzz mentioned this pull request Jun 25, 2024
@susnux susnux enabled auto-merge June 25, 2024 13:02
@susnux susnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 25, 2024
#43939 moved the CalDAV/CardDAV redirect checks from the frontend to a new backend API.

Since the backend does not send an authentication header, checking for the expected response code 207 of the DAV endpoint does not work anymore, hence the URL of the last redirect is checked instead.

This URL is expected to contain a trailing slash, which was not required before, since the DAV endpoint works properly without it (when authenticated).

While a trailing slash in the redirect does no harm, it causes many setups to throw an admin panel warning, while in fact the redirects work properly. Furthermore, the proposed "/.well-known/carddav" => "/remote.php/dav/" redirect leads to double slashes, when doing a request to "/.well-known/carddav/", which seems more wrong then right.

This change makes the trailing slash optional, hence old and adjusted setups won't throw the warning anymore, and the DAV endpoint works well in both cases.

Signed-off-by: MichaIng <micha@dietpi.com>
@susnux susnux merged commit 16e6f9c into stable29 Jul 9, 2024
177 checks passed
@susnux susnux deleted the backport/46079/stable29 branch July 9, 2024 23:06
@Altahrim Altahrim mentioned this pull request Jul 10, 2024
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish 29-feedback bug feature: settings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants