rwth-acis / las2peer

A Java-based decentralized framework for distributing community services in a peer-to-peer infrastructure.
https://las2peer.org
Other
52 stars 13 forks source link

[BUG] Spaces in query parameters are discarded #160

Open lakhoune opened 2 years ago

lakhoune commented 2 years ago
  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 commented 2 years ago

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