Skip to content

Commit

Permalink
Pass query parameters to remoteQueryService.planQuery call (#2043)
Browse files Browse the repository at this point in the history
* Previously, no parameters were passed. This meant the receiver did not get any information about the query to plan, resulting in an odd `415 Unsupported Media Type` error due to the empty POST body.
  • Loading branch information
drewfarris authored Jul 25, 2023
1 parent c0b3d5e commit 31cece0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public GenericQueryConfiguration initialize(Connector connection, Query settings

@Override
public String getPlan(Connector connection, Query settings, Set<Authorizations> auths, boolean expandFields, boolean expandValues) throws Exception {
GenericResponse<String> planResponse = remoteQueryService.planQuery(getRemoteQueryLogic(), getCallerObject());
GenericResponse<String> planResponse = remoteQueryService.planQuery(getRemoteQueryLogic(), settings.toMap(), getCallerObject());
return planResponse.getResult();
}

Expand Down

0 comments on commit 31cece0

Please sign in to comment.