nextcloud-server/apps/testing/lib
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
..
AppInfo feat(testing): add core:text2text:chat fake provider in the testing app 2025-11-25 13:42:08 +07:00
Controller fix: Fix caching routes by users with an active session 2025-12-12 16:10:20 +07:00
Conversion fix(files): conversion api simplification and conflict check 2025-01-16 18:35:40 +07:00
Listener chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +07:00
Locking refactor: Port away from more IQueryBuilder::execute 2025-10-02 14:40:28 +07:00
Migration fix(migration-attributes): psalm 2024-07-29 12:44:52 +07:00
Provider chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
Settings feat: add support for sensitive Declarative settings values encryption 2025-05-28 20:43:04 +07:00
TaskProcessing feat(testing): add core:text2text:chat fake provider in the testing app 2025-11-25 13:42:08 +07:00
AlternativeHomeUserBackend.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
HiddenGroupBackend.php chore: run rector 2025-07-01 22:45:52 +07:00