-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated query params #187
Comments
@mlundela I am trying to understand your issue. Did you send the request with query contains duplicate key-value? This is usually not possible with HTTP clients. Could you please give me an example on how to reproduce this issue? Thanks! |
No, all I did was to upgrade from 0.10.3 to 0.11.0. Deleting the simulation.json, and running the tests again in capture mode is a workaround. |
In my case, when the request doesn't match the captured request, Hoverfly seems to duplicate each query parameter that contains capitals when outputting the request that was made. An example (java 8, macOs Mojave, io.specto:hoverfly-java:0.11.0):
The example above will fail because the path doesn't match, which is reported correctly but when you look at the query param output of the captured request, you'll notice that the 'CaseSensitive' parameter is outputted twice: once with it's original name and once with the lowercase name. Not sure if this is intentional or not but I think this can be quite confusing, especially when the query parameters sections doesn't match.
simulation.json |
@cazpr Those are really useful info. I can now locate the bug here https://github.com/SpectoLabs/hoverfly/blob/master/core/matching/query_matching.go#L35 |
fixed in version 0.11.1 |
Upgrading from 0.10.3 to 0.11.0 is causing tests to fail, and from what I can understand it is because the request now has duplicates, and no longer matches my simulation files.
The text was updated successfully, but these errors were encountered: