Skip to content

Query parameters set through RequestBuilder.queryParam(...) are ignored when using .search #62

Description

@braveulysses

Arbitrary query parameters set via RequestBuilder.queryParam(...) are ignored when used in conjunction with a search via POST.

Adding something like

      service.searchRequest("Users").
          filter(filter).
          queryParam(expectedKey, expectedValue).
          invokePost(UserResource.class);

to EndpointTestCase.testQueryParams() should reproduce this.

Note that there isn't actually an implementation yet. For the client to set these parameters, logic needs to be added to SearchRequestBuilder.invoke(boolean, SearchResultHandler<T>, Class<T>), similar to the existing logic there for handling arbitrary headers. Then, support will need to be added to the server component, in DotSearchFilter, I assume.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions