presto-gateway
presto-gateway copied to clipboard
Incorrect parameter type in /presto/selector/read/{resourceGroupId}
resourceGroupId
in /presto/selector/read/{resourceGroupId}
is wrongly annotated with @QueryParam
, when it's actually a path parameter:
@GET
@Path("/selector/read/{resourceGroupId}")
public Response readSelector(@QueryParam("resourceGroupId") String resourceGroupIdStr,
...
As a result, /presto/selector/read/X
returns all selectors, and not just those in the X
resource group.