tomcatcamundabusiness-process-management

Internationalization of task comments using Camunda rest-engine


I setup Camunda as a web-service in tomcat and connect to it via my .NET web application. When I create comment on task with following rest API

POST /task/{id}/comment/create

with message in Unicode (Persian), for example “این نمونه است” and I got the correct message in response request. Also the comment is saved in persian correctly in the camunda database. But when I get the comment using this API

GET /task/{id}/comment/{commentId}

I got message as “?? ???” I tried it with postman and got same result. I also set the JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8" in tomcat but it does not solve it. I am wonder what is the root of problem?

Thanks in advance


Solution

  • Thanks to responses of @hassang and @davidgs in Camunda community,

    it looks like a bug in the get request of /comment sub-resource which I file a bug Camunda GitHub repository as follows:

    https://jira.camunda.com/browse/CAM-14125