Closed tiboleemans closed 9 months ago
@tommysitu could you please help here?
I've pushed a fix now. However it's incompatible with some legacy code for converting query into a string which I need to clean up first.
The reason it didn't work is because req.URL.Query()
in go explicitly filter out any compound query params when parsing for some reasons: https://github.com/golang/go/blob/master/src/net/url/url.go#L943 🤷
Actually there is an open issue here on the go project: https://github.com/golang/go/issues/50034, however I can't find anything in the RFC that says semicolon is not allowed in the query param value.
Description of the bug
Hoverfly can not handle sub-query parameters with a semicolon in it. It seems that this is ignored in this case. Probably because semicolon is a reserved character. But when we integrate with Here Geolocating we need to implement this in qq query-param. Example:
13:42:46,697 | DEBUG | [main] | org.springframework.web.client.RestTemplate:127 | HTTP GET http://geocode.search.hereapi.com/v1/geocode?apiKey=someKey&lang=nl-BE&qq=country=BEL;postalCode=1234;city=SomeCity;street=SomeStreet;houseNumber=25%20a
Steps to reproduce the issue
Observed result
Hoverfly error messages seen (If none, say none)
If possible, add screenshots to help explain your problem
Expected result
Find a match for this input.
Additional relevant information
Test setup: