-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Return 404 on v2.php when the app is disabled #1489
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @MorrisJobke, @LukasReschke and @bartv2 to be potential reviewers |
looks ok 👍 |
@@ -37,7 +37,7 @@ public static function notFound() { | |||
$format = \OC::$server->getRequest()->getParam('format', 'xml'); | |||
$txt='Invalid query, please check the syntax. API specifications are here:' | |||
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n"; | |||
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_UNKNOWN_ERROR, $txt), $format); | |||
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, $txt), $format); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? Should it not be a Method not allowed response? Because the endpoint is not found and not the actual entity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That OCS code does not exist...
@MorrisJobke can we move this forward? |
👍 |
Noticed when testing nextcloud/notifications#23
Not found should obviously return with "404" and not with "500"