You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Dave Barnes (JIRA)" <ji...@apache.org> on 2017/05/05 23:20:04 UTC

[jira] [Commented] (GEODE-2815) Incorrect Error Message in REST API docs for {region}/{key} HTTP.GET command

    [ https://issues.apache.org/jira/browse/GEODE-2815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999101#comment-15999101 ] 

Dave Barnes commented on GEODE-2815:
------------------------------------

Digging a bit deeper, 404 does mean 'not found', and in the REST API context it can mean  'Region not found', 'Key not found' or 'Either key or region not found', depending on what was being requested.
Edited the various REST API command docs accordingly.

> Incorrect Error Message in REST API docs for {region}/{key} HTTP.GET command
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-2815
>                 URL: https://issues.apache.org/jira/browse/GEODE-2815
>             Project: Geode
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 1.1.1, 1.2.0
>            Reporter: Michael Martell
>            Assignee: Dave Barnes
>            Priority: Minor
>
> According to the docs at http://gemfire.docs.pivotal.io/geode/rest_apps/get_region_key_data.html error responses HTTP 400 and HTTP 404 appear to be very similar,
> # 400 - BAD REQUEST - Returned if the supplied key is not found in the region.
> # 404 - NOT FOUND - Returned if key does not exist for the region.
> The source code at PdxBasedCrudController.java:210 & 213 show that 404 actually means "Region does not exist", thus the documentation appears to be incorrect. Other commands are correct in the docs showing 404 means region does not exist.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)