Bug 63986

Summary: Jmeter change the POST request when Json body contain blanket and slash
Product: JMeter Reporter: moon <nguyetnm.it>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 5.2.1   
Target Milestone: JMETER_5.2   
Hardware: PC   
OS: All   
Attachments: Reproduce bug 63986

Description moon 2019-12-05 02:52:45 UTC
Please review my post here https://stackoverflow.com/questions/59170591/jmeter-change-the-post-request-when-json-body-contain-branket-and-slash/59175934#59175934

This issue happen when POST request Json body contain both \\\ and {} character.
After sending this request, Jmeter will change \\\ to \\ and it leads to incorrect request and in my case it shows 500 server error.
Comment 1 Philippe Mouawad 2019-12-08 16:25:45 UTC
Hello,
I tried your SO Question and I don't reproduce the behaviour ?

Can you attach as simple test plan reproducing issue ?

Thank you
Comment 2 ashkola 2019-12-08 23:03:14 UTC
Created attachment 36912 [details]
Reproduce bug 63986
Comment 3 ashkola 2019-12-08 23:06:01 UTC
Hello, im faced the same issue.
To reproduce the situation http sampler must contain parameters.
Comment 4 moon 2019-12-09 07:58:21 UTC
My original POST request is {"id":"KpiFormData","entity":"[\n\t\"{\\\"Timeout\\\": \\\"10\\\",\\\"kpiType\\\": \\\"Marketing.KPI.Common, Marketing.KPI, Version=x.x.x.0, Culture=neutral, PublicKeyToken=3fafga352gts345\\\",\\\"widgetID\\\": \\\"KpiWidget_0\\\",\\\"Weight\\\": \\\"Medium\\\",\\\"CurrentContent\\\": \\\"${pageId}_${version}\\\"}\",\n\t\"{}\"\n]"}

When I hit SEND button, \\\ in my original request will change to \\ and it leads to 500 internal server error, more detail, please check this post https://stackoverflow.com/questions/59170591/jmeter-change-the-post-request-when-json-body-contain-branket-and-slash