Details
-
Bug
-
Resolution: Answered
-
Low
-
None
-
5.8.6, 5.10.8, 6.1.2
-
1
-
Severity 3 - Minor
-
Description
Summary
When uploading an attachment with a Rest API call, if the comment that goes with the attachments has umlaut characters, it will not be displayed correctly.
Steps to Reproduce
- Create a page and try to add attachments using Rest API. The file name and comment has umlaut characters
- {code:borderStyle=solid}
curl -v -S -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@testfile_áÁéÉíÍóÓöÖőŐúÚüÜűŰäÄ.jpg" -F "comment=test comment áéíóöőúüű" "http://localhost:8090/rest/api/content/65663/child/attachment" | python -mjson.toolc
{code}
- {code:borderStyle=solid}
Expected Results
File name and comment should be displayed with umlaut characters.
Actual Results
Only file name is correct, the comment is wrong.
Notes
- The use of Postman REST API plugin gives the same result
- Terminal encoding is UTF-8
- When terminal encoding is ISO8859-2, the file name becomes wrong and the comment is correct