-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 6.6.0
-
Component/s: Tasks
-
2
-
Severity 3 - Minor
Issue Summary
Inject Bamboo Variables task use ISO 8859-1 character encoding to read the file causing character encoding issue for Cyrillic character
Steps to Reproduce
- Create a UTF-8 file with Cyrillic character content, for example бвгджзклмнпрстфхцчшщаэыуояеёюи
- Use Inject Bamboo Variables task to read the file
Expected Results
It is able to read it successfully to create the variable
Actual Results
The variable is created with value "бвгджзклмнпÑÑÑÑÑ ÑÑÑÑаÑÑÑоÑеёÑи"
Notes
- The source file https://bitbucket.org/atlassianarchive/bamboo-variable-inject-task/src/bea482372d717833d54609bc40e3ef25957a0533/src/main/java/com/atlassian/bamboo/plugins/inject/InjectVariablesTask.java?at=default&fileviewer=file-view-default line number 121 load method will use character encoding ISO 8859-1
- Default character encoding ISO 8859-1 is stated in https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html
- The problem also affect file with BOM encoding
Workaround
Use the add-on Variable Tasks for Bamboo that have Variable File reader task