trinodb / trino-gateway

Home Page:https://trinodb.github.io/trino-gateway/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect query param type in /trino/selector/read/{resourceGroupId}

vaultah opened this issue · comments

commented

resourceGroupId in /trino/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, /trino/selector/read/X returns all selectors, and not just those in the X resource group.

Fix is merged and will go out with next release.