You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[regression] [master] App routes are loaded before the app itself #18095
After #17961, app routes are loaded before the app itself is loaded, as the URLGenerator used in OC_Defaults requires a Router, which in turn loads all routes, but this all occurs before any apps are loaded. If an app does initialization in appinfo/app.php which is required in appinfo/routes.php, then that app will cause errors. I'm not sure if there are any apps that will display these issues, but it's still bad that the app routes are getting loaded before the app itself.
Relevant backtrace from when I noticed it (was unit testing at the time):
changed the title [-][regression] App routes are loaded before the app itself[/-][+][regression] [master] App routes are loaded before the app itself[/+]on Aug 6, 2015
Might solve the problem but I'm not sure if I like the solution.
it breaks the pattern of default.php where all default values are defined at the top next to each other and can be changed easily.
I have the feeling that this would just solve the symptom but not the root of the problem. The next time someone creates a route to early we will run into the same issue again. Therefor I would prefer to fix it deeper in the stack so that it no longer matter when you create a route. But I'm not sure if this would be possible without to much changes. @LukasReschke afaik you worked on the routing stuff in the past. Any ideas?
Activity
[-]App routes are loaded before the app itself[/-][+][regression] App routes are loaded before the app itself[/+][-][regression] App routes are loaded before the app itself[/-][+][regression] [master] App routes are loaded before the app itself[/+]RobinMcCorkell commentedon Aug 6, 2015
cc @schiesbn @karlitschek @LukasReschke
PVince81 commentedon Aug 6, 2015
I suggest to directly call
\OC::$server->getURLGenerator()->linkToRoute('settings_help')ingetKnowledgeBaseUrl().schiessle commentedon Aug 6, 2015
Might solve the problem but I'm not sure if I like the solution.
RobinMcCorkell commentedon Aug 6, 2015
Setting severity high as this is currently blocking the refactor of files_external (and could be breaking other apps too)