las2peer
las2peer copied to clipboard
[BUG] Spaces in query parameters are discarded
-
Summary - If you send a
GET
request to the service containing space (%20
url-encoded), then the service will simply ignore the query -
Bug Details
-
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 "". -
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
-
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
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