Closed ingorichtsmeier closed 1 year ago
The problem does not lie in our codebase at first glance, we should check how camunda-bpm-platform handles this.
I tried out but could not reproduce. Let's talk and log our results here @ingorichtsmeier
I could reproduce it with the following steps.
java -jar backend-diagram-converter-cli-0.4.3.jar engine http://localhost:8081/engine-rest
Another finding:
If I start the program from the IDE against my engine, everything is fine.
If I start it from the command line against my engine, I get the exception.
Maybe the XML encoding is influenced by system settings that are overridden in the maven build here: https://github.com/camunda-community-hub/camunda-7-to-8-migration/blob/main/pom.xml#L15-L18 (just a rough guess)
The build should stick to UTF-8 encoding, however, we could see if the HTTP clients response encoding/decoding can be set depending on the platform encoding.
Here is the entrypoint for this approach: https://github.com/camunda-community-hub/camunda-7-to-8-migration/blob/fe947d342f1da74ff26210ae97dea13bb29c90b0/backend-diagram-converter/cli/src/main/java/org/camunda/community/migration/converter/cli/ProcessEngineClient.java#L46
These are the characters from the BpmnXml:
09:53:02.629 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 228:ä
09:53:02.629 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 246:ö
09:53:02.629 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 252:ü
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 196:Ä
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 214:Ö
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 220:Ü
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 44:,
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 32:
09:59:24.546 [main] INFO o.c.c.m.c.cli.ProcessEngineClient - 223:ß
This solves the problem:
java -Dfile.encoding=UTF-8 -jar backend-diagram-converter-cli-0.4.3.jar engine http://localhost:8081/engine-rest
It's a Windows issue if you run it on the Windows command line.
Describe the bug
If one process model deployed to an engine and contains an Umlaut and gets converted with the CLI converter, you will get an exception and no results.
Steps to reproduce
Expected Behaviour
The process model gets converted
Library version
egal
Camunda version
egal
Camunda Distribution
Tomcat
Other Camunda distribution
No response