las2peer icon indicating copy to clipboard operation
las2peer copied to clipboard

[BUG] Spaces in query parameters are discarded

Open lakhoune opened this issue 2 years ago • 1 comments

  1. Summary - If you send a GET request to the service containing space (%20 url-encoded), then the service will simply ignore the query
  2. Bug Details
    1. What? - Using the latest las2peer version (currently 1.2.3). My service permits a user to enter a search term to look up surveys on a database. On the server, this parameter should be contained in @QueryParam("q") @DefaultValue("") String query. This works fine, unless a space character is included in the query parameter. The query parameter will in that case resort to the default value "".
    2. How?/Current state - I created a working example on the miniclient-issue branch of the template service . Clone the repo, checkout the branch and build the service. The echo test will fail

lakhoune avatar Sep 16 '22 17:09 lakhoune

I was able to make a request through POSTMAN that had spaces in the query parameter. This leads me to believe that the issue lies somewhere with the way the miniclient sends requests

lakhoune avatar Sep 16 '22 17:09 lakhoune