nextcloud/build
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 +02:00
..
.ci-conf
integration fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +02:00
psalm chore: check enums for since and experimental comments 2024-12-02 14:30:18 +01:00
stubs chore: fix some comments 2024-07-29 14:43:27 +08:00
.htaccess chore: Add SPDX header 2024-06-06 22:53:41 +02:00
autoloaderchecker.sh build(autoloader): Remove noisy changes when regenerating 2024-10-17 09:20:36 +02:00
build.xml chore: Add SPDX header 2024-05-10 11:07:50 +02:00
buildjsdocs.sh chore: Add SPDX header 2024-05-27 14:53:40 +02:00
ca-bundle-etag.txt fix(security): Update CA certificate bundle 2025-05-21 02:37:29 +00:00
ca-bundle-etag.txt.license chore: Add SPDX header 2024-06-06 22:53:41 +02:00
compile-handlebars-templates.sh chore(files): Remove legacy UI scripts now that everything is migrated to Vue 2024-09-20 13:46:39 +02:00
files-checker.php test: ignore git-ignored files from tests 2025-05-31 14:13:36 +00:00
gen-coverage-badge.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
htaccess-checker.php ci(autochecks): Run some autochecks also on non-PHP files 2025-02-21 12:04:34 +00:00
image-optimization.sh chore: Add SPDX header 2024-05-27 14:53:40 +02:00
jsdocs9.tar.bz2
jsdocs9.tar.bz2.license chore: Add SPDX header 2024-06-06 22:53:41 +02:00
license.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
merge-font-noto-fix-merging-v20201206-phase3-76b29f8f8f9b.patch Include additional scripts in Noto fonts 2021-03-01 19:15:01 +01:00
merge-font-noto-fix-merging-v20201206-phase3-76b29f8f8f9b.patch.license chore: Add SPDX header 2024-06-06 22:53:41 +02:00
merge-font-noto.sh chore: Add SPDX header 2024-05-27 14:53:40 +02:00
npm-post-build.sh Update build/npm-post-build.sh 2024-06-14 08:53:02 +02:00
openapi-checker.sh chore: Add SPDX header 2024-05-27 14:53:40 +02:00
phpDocumentor.sh chore: Add SPDX header 2024-05-27 14:53:40 +02:00
psalm-baseline-ocp.xml chore(tests): Update psalm baseline 2024-09-16 02:37:08 +00:00
psalm-baseline-security.xml fix(appmanager): Fix tainted file path when loading appinfos 2024-10-14 14:33:19 +02:00
psalm-baseline.xml fix(blurhash): Use preview API to generate the previews 2025-05-06 12:19:35 +00:00
rector.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
translation-checker.php ci(autochecks): Run some autochecks also on non-PHP files 2025-02-21 12:04:34 +00:00
triple-dot-checker.php ci(autochecks): Run some autochecks also on non-PHP files 2025-02-21 12:04:34 +00:00
update-apps.sh build: Adjust checkout branch script 2025-01-23 10:32:24 +01:00
update.sh build: Adjust checkout branch script 2025-01-23 10:32:24 +01:00
WebpackSPDXPlugin.js chore: Switch order of license texts in .license files 2024-06-18 17:28:23 +02:00