-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix: encode unicode characters in filenames when sending files in HTTP Sampler #5987
Conversation
830f99f
to
3069b20
Compare
3069b20
to
ee59a9e
Compare
… the most often used scenario This is a follow-up to apache#678
…P Sampler Fixes apache#4546 Fixes apache#5701 Fixes apache#5982 Fixes apache#5758
If I understand well the fix consists in systematically encode file name in UTF8. Wouldn't it be better to encode only if it contains special characters? |
It looks like RFC 5987 is not the latest standard: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/network/form_data_encoder.cc;l=162-191;drc=4cd749d0d82138ff31ed3a2bc5d925bb6d83fe16, curl/curl#7789 (comment)
|
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
In PR 5987 HTTP sampler encoded filenames with percent encoding, however, it should not encode all the characters. Fixes apache#6005 This is a fixup to apache#5987
Description
Use RFC 7578 for encoding filenames when uploading files in HTTP Sampler.
HttpClient4 does not support filename encoding, so we encode it at JMeter side
Motivation and Context
See #4546
How Has This Been Tested?
See
ConversionUtilsTest
,HttpSamplerTest