ParamMatcher failed when using parameter with comma
See original GitHub issueDescribe the bug
I’m working on a system that consumes a 3rd party API which accepts as querystring a SQL statement. For example, to query some data from any table just build the URI like this:
http://host/api/queryservice?query=SELECT id FROM table WHERE id = 1While trying to mock this API, I realized that whenever I tried to mock a statement using comma, the ParamMatcher fails. For example,SELECT id, value FROM table WHERE id = 1. And I received a 404 (NotFound) error code.
Expected behavior:
I expected the ParamMatcher has succeded, and returned 200 (OK).
Test to reproduce
1 - Create an API which receives as querystring a SQL statement 2 - Mock that API using “WithParam” function 3 - Test creating a statement which has a ‘comma’ within, “SELECT id, value FROM table WHERE id = 1”
Other related info
Provide additional information if any.
Issue Analytics
- State:
- Created 10 months ago
- Comments:16
Top Results From Across the Web
failed parsing on parameters with comma · Issue #1660
This commit fixes Helm parsing of parameters values containing a comma. The issue was first found as argoproj#1660, and fixed in argoproj#1720. ...
Read more >SSRS multi-select parameter can't capture values with ...
I have a multi-select parameter that has comma on it's list and my dataset is using a function split for my parameter since...
Read more >ERROR: More positional parameters found than defined.
Solved: I got this error because that dataset called data contains some questions where there are commas ( , symbol).
Read more >Comma or ')' expected (Procedure Parameter List)
A parameter list contains an unexpected element. Use commas ( , ) to separate parameters in such a list, and use a closing...
Read more >Variables with Parameters when the value has a comma ","
Qlik stops to understand where the first parameters ends and the second starts. There are two methods how to resolve this problem:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No. Nothing is wrong on your end
I just realized that I need to release a new version which includes this.
I’ll do that now.
previews are here: https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
But I’ll release an official version today on nuget.