nextcloud-server/build/integration
Daniel Calviño Sánchez ac6b07356d fix: Fix theming for disabled accounts
The Theming app injects the stylesheets for the different themes in the
"<header>" element of the page, and those stylesheets are then loaded by
the browser from a "Controller" (a plain "Controller", not an
"OCSController"). The stylesheets, in turn, may also get some images
(like the background) also from the "Controller".

When handling a request to "index.php" it is checked whether the user is
logged in and, if not, a login is tried. A disabled user is explicitly
seen as not logged in, so a login is always tried in that case, but
disabled users are also explicitly prevented to log in, so the login
also fails. Due to that trying to get any of the themed stylesheets or
images with a disabled account (to be able to show the "Account
disabled" error page) fails with an HTTP status 401.

To solve that, and to avoid touching this basic logic as much as
possible, the login exception is now ignored (if the user is disabled)
for some specific requests to the Theming app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-07-11 02:54:16 +07:00
..
capabilities_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
collaboration_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
comments_features chore: Remove deprecated legacy search backend 2024-08-01 12:33:18 +07:00
config fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +07:00
data chore: add file conversion integration tests 2025-01-16 18:55:44 +07:00
dav_features test(dav): add integration test for principal property search 2025-06-17 20:02:30 +07:00
features fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +07:00
federation_features chore(federation): add trusted server auto accept integration tests 2025-01-09 12:54:51 +07:00
file_conversions fix(files): more conversion tests and translate error messages 2025-01-17 18:22:58 +07:00
files_features fix(files): Always transfer incoming shares when doing ownership transfer to prevent broken reshares 2025-07-01 13:08:13 +07:00
filesdrop_features fix(dav): file drop nickname 2025-06-05 08:56:17 +07:00
ldap_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
openldap_features fix: Fix test by scanning group before using it 2025-02-27 15:35:22 +07:00
openldap_numerical_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ratelimiting_features test: enable rate limiting for ratelimiting.feature 2025-04-15 08:58:17 +07:00
remoteapi_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
setup_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
sharees_features chore: Add SPDX header 2024-06-06 22:53:41 +07:00
sharing_features fix(files_sharing): expireDate null tests 2025-04-22 11:17:22 +07:00
theming_features fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +07:00
videoverification_features chore: Add SPDX header 2024-05-27 14:53:40 +07:00
.gitignore ci: Align integration test dependencies with 3rdaprty/ 2024-10-29 22:54:30 +07:00
composer.json ci: Bump behat/behat as well 2024-10-30 09:04:05 +07:00
composer.lock build(deps-dev): bump phpunit/phpunit in /build/integration 2025-05-29 14:56:14 +07:00
run-docker.sh feat: Make `ISharedStorage` public API and reuse where possible 2024-08-12 11:42:10 +07:00
run.sh test: Disable ratelimit as tests trigger it 2025-04-15 08:58:17 +07:00