Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jun 25, 2024

Backport of PR #46079

@blizzz blizzz mentioned this pull request Jun 25, 2024
@susnux susnux force-pushed the backport/46079/stable29 branch from a135322 to c9859a3 Compare June 25, 2024 13:02
@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 <[email protected]>
@MichaIng MichaIng force-pushed the backport/46079/stable29 branch from c9859a3 to 79bcb9d Compare July 9, 2024 22:24
@susnux susnux merged commit 16e6f9c into stable29 Jul 9, 2024
@susnux susnux deleted the backport/46079/stable29 branch July 9, 2024 23:06
@Altahrim Altahrim mentioned this pull request Jul 10, 2024
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.

5 participants