Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-4849

Internal REST endpoints in geode-core can be obfuscated by those in geode-web-api

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • rest (dev)

    Description

      For instance, a GET to http://localhost:8080/geode/v1/version is returning

      {
      "cause": "The Region identified by name (version) could not be found!"
      }
      

      because it is matching the endpoint in PdxBasedCrudController:

        @RequestMapping(method = RequestMethod.GET, value = "/{region}",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
      

      rather than the intended endpoint in ShellCommandsController:

        @RequestMapping(method = RequestMethod.GET, value = "/version")
      

      Similar errors exist for /mbean, /regions, /indexes, and /management.

      Attachments

        Issue Links

          Activity

            People

              pivotalsarge Michael W. Dodge
              prhomberg Patrick Rhomberg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h