You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Michael Dodge (JIRA)" <ji...@apache.org> on 2018/04/05 18:26:00 UTC

[jira] [Resolved] (GEODE-4849) Internal REST endpoints in geode-core can be obfuscated by those in geode-web-api

     [ https://issues.apache.org/jira/browse/GEODE-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dodge resolved GEODE-4849.
----------------------------------
    Resolution: Not A Bug

As mentioned in the comments, the problem came from a malformed URL. However, I did add some more tests for the REST API.

> Internal REST endpoints in geode-core can be obfuscated by those in geode-web-api
> ---------------------------------------------------------------------------------
>
>                 Key: GEODE-4849
>                 URL: https://issues.apache.org/jira/browse/GEODE-4849
>             Project: Geode
>          Issue Type: Bug
>          Components: rest (dev)
>            Reporter: Patrick Rhomberg
>            Assignee: Michael Dodge
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> For instance, a GET to {{http://localhost:8080/geode/v1/version}} is returning 
> {noformat}
> {
> "cause": "The Region identified by name (version) could not be found!"
> }
> {noformat}
> because it is matching the endpoint in {{PdxBasedCrudController}}:
> {noformat}
>   @RequestMapping(method = RequestMethod.GET, value = "/{region}",
>       produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
> {noformat}
> rather than the intended endpoint in {{ShellCommandsController}}:
> {noformat}
>   @RequestMapping(method = RequestMethod.GET, value = "/version")
> {noformat}
> Similar errors exist for {{/mbean}}, {{/regions}}, {{/indexes}}, and {{/management}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)