-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
#2224 - Add parsing for multi-valued query params in non standard format [#hacktoberfest] #2445
base: master
Are you sure you want to change the base?
Conversation
@kapishmalik did you see this comment on the original issue? |
@Mahoney yup I saw that comment but if we are adding support for all without config does that harm any sense? IMO, it will be complete overhead of doing that. @tomakehurst what do you want to say on this? |
Looking good so far @kapishmalik, a few observations:
|
The main issue with just enabling this behaviour without a config flag is that it'll be a breaking change for anyone who depends on the current behaviour. I think we could just make it boolean e.g. |
@tomakehurst getting hold of option enableAdvancedQueryParameterParsing from Diff class will be pain as method com.github.tomakehurst.wiremock.common.Urls#splitQuery(java.net.URI) is called from here as well and IMO, it will not be worth it to change and break this at multiple places. I believe, it will be more beneficial to ask end users to change as they are using this behaviour incorrectly. I am okay to go ahead with any of the approaches whatever you guys suggest. |
What if we did the splitting in the We could extend |
Description:
This PR adds parsing for query params in non standard format. It will be able to parse following non-standard multi-valued query parameter formats along with standard one.
?id[0]=1&id[1]=2&id[2]=3
?id=1,2,3
?id=1|2|3
?id=[1,2,3]
References
#2224
Submitter checklist
#help-contributing
or a project-specific channel like#wiremock-java
#hacktoberfest