fix: encode unicode characters in filenames when sending files in HTTP Sampler#5987
fix: encode unicode characters in filenames when sending files in HTTP Sampler#5987vlsi merged 2 commits intoapache:masterfrom
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