nextcloud-server/apps/settings/lib
MichaIng ea994fe8fb
fix(settings): make trailing slash for caldav/carddav redirects optional
#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>
2024-06-24 17:52:22 +07:00
..
Activity chore: Add SPDX header 2024-06-03 20:33:31 +07:00
AppInfo feat: add setup check for needed mimetype migrations 2024-06-18 14:46:19 +07:00
BackgroundJobs chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Command/AdminDelegation chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Controller Merge pull request #43942 from nextcloud/fix/43612/avoid-pwd-confirm-sso 2024-06-07 11:25:36 +07:00
Events chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Listener chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Mailer chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Middleware chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Search chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Sections chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Service chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Settings chore: Add SPDX header 2024-06-03 20:33:31 +07:00
SetupChecks fix(settings): make trailing slash for caldav/carddav redirects optional 2024-06-24 17:52:22 +07:00
UserMigration chore: Add SPDX header 2024-06-03 20:33:31 +07:00
WellKnown chore: Add SPDX header 2024-06-03 20:33:31 +07:00
Hooks.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
ResponseDefinitions.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00