nextcloud/build/integration/features/bootstrap
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
..
Activity.php fix(tests): Sort activities by id to get the last one 2025-03-27 12:20:35 +01:00
AppConfiguration.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Auth.php feat(login): add origin check at login 2024-12-05 09:51:53 +01:00
Avatar.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
BasicStructure.php fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +02:00
CalDavContext.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
CapabilitiesContext.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
CardDavContext.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
ChecksumsContext.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
CollaborationContext.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
CommandLine.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
CommandLineContext.php fix(files): Always transfer incoming shares when doing ownership transfer to prevent broken reshares 2025-07-01 13:08:13 +02:00
CommentsContext.php fix(dav): Public WebDAV endpoint should allow GET requests 2024-10-09 17:10:52 +02:00
ContactsMenu.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ConversionsContext.php chore: add file conversion integration tests 2025-01-16 18:55:44 +01:00
DavFeatureContext.php fix(dav): Public WebDAV endpoint should allow GET requests 2024-10-09 17:10:52 +02:00
Download.php fix(dav): Public WebDAV endpoint should allow GET requests 2024-10-09 17:10:52 +02:00
ExternalStorage.php test(ExternalStorage): Send basic auth during integrations tests 2024-11-28 11:12:29 +01:00
FakeSMTPHelper.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
FeatureContext.php fix(provisioning_api): Correct limit for editUser 2025-02-06 15:46:15 +01:00
FederationContext.php chore(federation): cleanup SettingsController and legacy AddServerMiddleware 2025-01-09 15:39:01 +01:00
FilesDropContext.php chore(integration): add file request tests 2024-07-19 07:35:51 +02:00
LDAPContext.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Mail.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
MetadataContext.php feat: Support deleting metadata from WebDAV 2025-03-04 13:12:20 +00:00
PrincipalPropertySearchContext.php test(dav): add integration test for principal property search 2025-06-17 20:02:30 +02:00
Provisioning.php feat(profile): Add an API to get the profile field data 2025-04-24 00:50:11 +02:00
RateLimitingContext.php test: enable rate limiting for ratelimiting.feature 2025-04-15 08:58:17 +00:00
RemoteContext.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
Search.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
SetupContext.php chore: Add SPDX header 2024-05-10 11:07:50 +02:00
ShareesContext.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Sharing.php fix(files_sharing): expireDate null tests 2025-04-22 11:17:22 +02:00
SharingContext.php feat: Add context and test steps for activity in sharing 2025-03-27 12:20:22 +01:00
TagsContext.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
TalkContext.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Theming.php fix: Fix theming for disabled accounts 2025-07-11 02:54:16 +02:00
Trashbin.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
WebDav.php fix(dav): Public WebDAV endpoint should allow GET requests 2024-10-09 17:10:52 +02:00