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

Return 404 on v2.php when the app is disabled #1489

Merged
merged 1 commit into from
Sep 27, 2016

Conversation

nickvergessen
Copy link
Member

Noticed when testing nextcloud/notifications#23

Not found should obviously return with "404" and not with "500"

Signed-off-by: Joas Schilling <coding@schilljs.com>
@mention-bot
Copy link

@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @MorrisJobke, @LukasReschke and @bartv2 to be potential reviewers

@schiessle
Copy link
Member

schiessle commented Sep 22, 2016

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);
Copy link
Member

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.

Copy link
Member Author

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...

@nickvergessen
Copy link
Member Author

@MorrisJobke can we move this forward?

@MorrisJobke
Copy link
Member

MorrisJobke commented Sep 27, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants