This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Multiple QueryParams aren't delimited with & #23
Comments
(for reference, from IRC): Line 95 (probably) needs to check whether the queryString is empty, and if it's not, use '&' before adding the param |
declension
added a commit
to declension/servant-quickcheck
that referenced
this issue
Mar 6, 2017
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes haskell-servant#23.
(Also realised this applies to |
declension
added a commit
to declension/servant-quickcheck
that referenced
this issue
Mar 7, 2017
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
Released as 0.0.2.3 |
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Add test API taking multiple `QueryParam`s * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`) * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string. Fixes #23.
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
tchoutri
pushed a commit
that referenced
this issue
Apr 22, 2024
* Same logic / testing as for `QueryParam` * There's probably some de-duplication that could be done here one day...
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I may have misunderstood, so am quoting the test api / spec I used to narrow down the problem:
Test API
With this basic API:
Spec
..and a
serverSatisifies
spec like:Output
Using a basic HTTP server (
python -m SimpleHTTPServer 8080
here), I see lots of this in the logs:127.0.0.1 - - [24/Feb/2017 18:01:06] "GET /path/?two=valueone=value HTTP/1.1" 404 -
Whilst I think the
path/
is covered separately in #22, it's the missing&
here that means I can't query the real API I was examining. Is this a bug?Note: a client created with
servant-client
works as expected, with ampersands delimiting multiple (separate)QueryParam
s...The text was updated successfully, but these errors were encountered: