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
value is trimmed when sending the request in Multipart #2433
Comments
Sebb (migrated from Bugzilla): I agree, there is a problem with the parsing of values - it should only strip the initial blank line and the trailing EOL. BTW, I'm not quite sure why the code allows for "\n\n" (LFLF); AFAIK, CRLF is the only permitted EOL marker. However I think that option should be kept for now. |
Sebb (migrated from Bugzilla): So what user agent caused the problem for you? |
Kanagamahendran Velusamy (migrated from Bugzilla):
|
Sebb (migrated from Bugzilla): |
Sebb (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1041406&view=rev Modified: |
Kanagamahendran Velusamy (migrated from Bugzilla): |
Kanagamahendran Velusamy (Bug 50392):
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.
Severity: major
OS: Linux
The text was updated successfully, but these errors were encountered: