Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Dec 15, 2025

Backport of PR #56921

@backportbot backportbot bot requested a review from a team as a code owner December 15, 2025 09:53
@backportbot backportbot bot requested review from ArtificialOwl, CarlSchwan, come-nc, danxuliu, icewind1991 and provokateurin and removed request for a team December 15, 2025 09:53
@backportbot backportbot bot added bug 3. to review Waiting for reviews regression feature: caching Related to our caching system: scssCacher, jsCombiner... labels Dec 15, 2025
@backportbot backportbot bot added this to the Nextcloud 32.0.4 milestone Dec 15, 2025
This reverts commit 90948f5.

It temporary disabled cache for routes until an actual fix was added,
which is done in the following commits.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
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 <[email protected]>
@provokateurin provokateurin merged commit 9fe7e1c into stable32 Dec 18, 2025
214 of 218 checks passed
@provokateurin provokateurin deleted the backport/56921/stable32 branch December 18, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: caching Related to our caching system: scssCacher, jsCombiner... regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants