https://issues.apache.org/bugzilla/show_bug.cgi?id=50392
Summary: value is trimmed when sending the request in Multipart
Product: JMeter
Version: 2.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: HTTP
AssignedTo: [email protected]
ReportedBy: [email protected]
When user agent submit a request which is POST/Multipart to Jmeter Http Proxy
server, for the key and value arguments,value filed is being trimmed which is
totally wrong. what if the value field is depend on the space?
i figured out where is the problem and its in
org.apache.jmeter.protocol.http.config.MultipartUrlConfig
i added the below code in parseArquments method and removed the trim part
/*
* Bug Fix
* Do not trim the value,just remove the extra char's
appended with value in the process.
* value always contains \n\r\n<value>\r\n
*/
if(value!=null)
{
if(value.length()>=3&&value.substring(0,3).equals("\n\r\n"))
{
value=value.substring(3);
}
if(value.length()>=2&&value.substring(value.length()-2).equals("\r\n"))
{
value=value.substring(0,value.length()-2);
}
}
Please let me know if you need any more info.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]