nextcloud-server/apps/testing
Daniel Calviño Sánchez 51ed61bb4a fix: Fix caching routes by users with an active session
When a user has an active session only the apps that are enabled for the
user are initially loaded. In order to cache the routes the routes for
all apps are loaded, but routes defined in routes.php are taken into
account only if the app was already loaded. Therefore, when the routes
were cached in a request by a user with an active session only the
routes for apps enabled for that user were cached, and those routes were
used by any other user, independently of which apps they had access to.
To solve that now all the enabled apps are explicitly loaded before
caching the routes.

Note that this did not affect routes defined using annotations on the
controller files; in that case the loaded routes do not depend on the
previously loaded apps, as it explicitly checks all the enabled apps.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-12-12 16:10:20 +07:00
..
ajax fix(tests): Use testing application for testing ajax endpoints, not user_ldap 2025-11-21 14:23:58 +07:00
appinfo fix: Fix caching routes by users with an active session 2025-12-12 16:10:20 +07:00
composer fix: Fix caching routes by users with an active session 2025-12-12 16:10:20 +07:00
img chore: Add SPDX header 2024-06-02 20:00:00 +07:00
lib fix: Fix caching routes by users with an active session 2025-12-12 16:10:20 +07:00
.noopenapi fix(build): Do not generated OpenAPI for non-shipped apps or apps without OpenAPI support 2024-01-18 11:22:43 +07:00
clean_apcu_cache.php fix: Fix caching routes by users with an active session 2025-12-12 16:10:20 +07:00
clean_opcode_cache.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00