You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by GitBox <gi...@apache.org> on 2023/01/10 15:02:52 UTC

[GitHub] [jmeter] user412857 opened a new issue, #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

user412857 opened a new issue, #5758:
URL: https://github.com/apache/jmeter/issues/5758

   ### Expected behavior
   
   HTTP Request Sampler should allow upload of files which name contains special characters, without changing the files name.
   
   ### Actual behavior
   
   In HTTP Request Sampler, when uploading a file which name contains special characters (for example: éèà), the characters are replaced by "?" in HTTP Request:
   
   > Content-Disposition: form-data; name="file1"; filename="nameWithSpecialCharacters_??.txt" Content-Type: text/plain Content-Transfer-Encoding: binary
   
   This is when we use HttpClient4 implementation. With java implementation, they are replaced by "�" (REPLACEMENT CHARACTER).
   
   Note that setting `file.encoding` system property to `UTF-8` doesn't affect the behavior.
   
   ### Steps to reproduce the problem
   
   1. Add HTTP Request in TestPlan.
   2. Select the POST method.
   3. Type in the Path.
   4. Select use multipart/form-data.
   5. Under the File Upload tab, enter the file path, Parameter Name, and MimeType. MIME Type examples: image/jpeg, image/png, text/plain. Choose a file which name contains special characters (for example: éèà)
   6. Save and run the test.
   7. In View Results Tree, Request Body, check that special characters are replaced by "?" or "�".
   
   ### JMeter Version
   
   5.5
   
   ### Java Version
   
   java version "11.0.13" 2021-10-19 LTS
   
   ### OS Version
   
   Microsoft Windows [Version 10.0.19044.2364]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] user412857 commented on issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

Posted by "user412857 (via GitHub)" <gi...@apache.org>.
user412857 commented on issue #5758:
URL: https://github.com/apache/jmeter/issues/5758#issuecomment-1591382994

   > 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 explicit?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] vlsi commented on issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5758:
URL: https://github.com/apache/jmeter/issues/5758#issuecomment-1590945057

   Duplicate of https://github.com/apache/jmeter/issues/4546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] vlsi commented on issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5758:
URL: https://github.com/apache/jmeter/issues/5758#issuecomment-1591391315

   This is a duplicate of https://github.com/apache/jmeter/issues/4546. Let us please discuss in https://github.com/apache/jmeter/issues/4546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] vlsi closed issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi closed issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler
URL: https://github.com/apache/jmeter/issues/5758


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] vlsi commented on issue #5758: Special characters in file name are replaced by "?" in HTTP Request Sampler

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5758:
URL: https://github.com/apache/jmeter/issues/5758#issuecomment-1555712466

   The syntax is to send the filename twice: https://greenbytes.de/tech/webdav/rfc5987.html#examples
   
   We probably need implementing it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org