Bug 63986 - Jmeter change the POST request when Json body contain blanket and slash
Summary: Jmeter change the POST request when Json body contain blanket and slash
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.2.1
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER_5.2
Assignee: JMeter issues mailing list
Depends on:
Reported: 2019-12-05 02:52 UTC by moon
Modified: 2019-12-09 07:59 UTC (History)
1 user (show)

Reproduce bug 63986 (14.19 KB, application/xml)
2019-12-08 23:03 UTC, ashkola

Note You need to log in before you can comment on or make changes to this bug.
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
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
Comment 5 The ASF infrastructure team 2022-09-24 20:38:18 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5206