presto-gateway icon indicating copy to clipboard operation
presto-gateway copied to clipboard

Incorrect parameter type in /presto/selector/read/{resourceGroupId}

Open vaultah opened this issue 10 months ago • 0 comments

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.

vaultah avatar Aug 18 '23 10:08 vaultah