Make sure urlparams are correctly injected in global routes#14626
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
| ['name' => 'Search#search', 'url' => '/core/search', 'verb' => 'GET'], | ||
|
|
||
| // Legacy routes that need to be globally available while they are handled by an app | ||
| ['name' => 'viewcontroller#showFile', 'url' => '/f/{fileid}', 'verb' => 'GET', 'app' => 'files'], |
There was a problem hiding this comment.
I think it should also be possible, to move those to the respective apps, when at the same time we allow defining a root' => '/cloud' similar to OCS urls.
Just not sure how this breaks existing route generations (because all lowercase instead of CamelCase controller names, which is why the hacks in lib/private/AppFramework/Routing/RouteConfig.php were necessary)
| if (strpos($controllerName, '\\Controller\\') !== false) { | ||
| // This is from a global registered app route that is not enabled. | ||
| [/*OC(A)*/, $app, /* Controller/Name*/] = explode('\\', $controllerName, 3); | ||
| throw new HintException('App ' . strtolower($app) . ' is not enabled'); |
There was a problem hiding this comment.
this is inaccurate for cloud_federation_api as it shows cloudfederationapi instead.
Worth adding another hack? however it's pretty useless anyway.
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 16911: failureTESTS=integration-federation_features
Show full logTESTS=acceptance, TESTS-ACCEPTANCE=app-files
Show full log |
MorrisJobke
left a comment
There was a problem hiding this comment.
Tested and works 👍 Also the code looks good 👍
ChristophWurst
left a comment
There was a problem hiding this comment.
Makes sense, code looks good!
|
faily-bot was still complaining about failures yet this PR got merged?! |
Yes because there are some failures on master and we are currently looking into how to fix them. They slipped through. |
Fix #14621