Patrick Rhomberg created GEODE-4849:
---------------------------------------

             Summary: 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
            Reporter: Patrick Rhomberg


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)

Reply via email to