Skip to content

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 a team, Altahrim, nfebe, nickvergessen, susnux 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 42e604e to 554b7a9 Compare August 27, 2024 07:13
@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.

5 participants