Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Router): Load attribute routes of all apps when not app is specified #47508

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

provokateurin
Copy link
Member

@provokateurin provokateurin commented Aug 27, 2024

Summary

Found while debugging #47479 (also necessary for the fix to it).

The problem was that when loadRoutes(null) was called the attribute routes should have been loaded for all apps since no app was specified. It only loaded the traditional routes.php files and then continued to set loaded = true. Any future call would return early, even if an app was specified because everything must be loaded already.
This logic now matches the loading process of routes.php which it should have done from the start.
Unfortunately back then I didn't find this problem and it seems to only trigger in specific places where the app is not known (e.g. when loading the /index.php path where the server has to load the routes first and then has to figure out which app should be used).

Checklist

@provokateurin provokateurin added this to the Nextcloud 31 milestone Aug 27, 2024
@provokateurin provokateurin requested review from nickvergessen, susnux, a team, Altahrim, nfebe and yemkareems and removed request for a team August 27, 2024 07:07
@provokateurin
Copy link
Member Author

/backport to stable30

@provokateurin
Copy link
Member Author

/backport to stable29

@provokateurin provokateurin force-pushed the fix/router/attribute-routes-all-apps branch from 554b7a9 to 12b4484 Compare August 27, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants