-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
HTTP sampler corrupts filename with Chinese characters when upload file with http sampler #4546
Comments
Nick.Yin (migrated from Bugzilla): |
@pmouawad (migrated from Bugzilla): RFC 2388 4.4 applies here and the filenames can be encoded using RFC 2231. See discussion around #4460 |
Nick.Yin (migrated from Bugzilla): |
Nick.Yin (migrated from Bugzilla): |
Nick.Yin (migrated from Bugzilla): |
Nick.Yin (migrated from Bugzilla): |
Nick.Yin (migrated from Bugzilla):
|
@pmouawad (migrated from Bugzilla): JMeter 3.2 was wrong in working the way it was. See :
Also have a look at TEST_HTTP.jmx you'll see that tests consider this. If you think I am wrong in my analysis, can you point me to the RFC that contradicts JMeter behaviour ? Thank you |
The syntax is to send the filename twice: https://greenbytes.de/tech/webdav/rfc5987.html#examples We probably need implementing it |
Can you be more precise? How to send the filename twice? How to do that using BeanShell PreProcessor instead of HTTP Request Files Upload? |
Let me explain:
So I would suggest to try adjusting JMeter code that creates jmeter/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/PostWriter.java Line 391 in 88423ed
Do you think you could create such a pull request? |
For reference, HttpClient 4.x does not support Unicode filenames, and https://issues.apache.org/jira/browse/HTTPCLIENT-293 was integrated into 5.x only. |
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
I've prepared a fix in #5987. |
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
Nick.Yin (Bug 61669):
precondition:
use multipart/form-data for Post and Browser-compatible headers is chosen.
step:
1.add a HTTP sample to threadgroup
2.choose a file with Chinese character in file upload area in sampler
3. excute the test
excepted result:
the file whose file name is Chinese character is displayed in view result tree
actual:
the file name displays like ?????
by the way: it was working fine with Jmeter 3.1
Created attachment filename1.PNG: filename with chinese charactor
Severity: major
OS: All
Duplicates:
The text was updated successfully, but these errors were encountered: