Bug 1314322

Summary: It is not possible to create Business Process on Windows server with I18n Business Process names
Product: [Retired] JBoss BPMS Platform 6 Reporter: Kirill Gaevskii <kgaevski>
Component: Business CentralAssignee: Eder Ignatowicz <eignatow>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3.0CC: kverlaen, lpetrovi, mczernek, rrajasek, tradej
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Due to wrong file encoding, it is impossible to create assets with i18n names (for example 日本語 or Русский) when running JBoss BPM Suite on Windows. To work around the issue, set the file encoding of your application server to UTF8, for example: set "JAVA_OPTS=-Dfile.encoding=UTF-8 -Dprogram.name=%PROGNAME% %JAVA_OPTS%" in the JBoss EAP standalone.bat within :Main label.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:13:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
I18n Business Process names on Windows
none
server log with stack trace none

Description Kirill Gaevskii 2016-03-03 12:13:16 UTC
Description of problem:
You can't create Business Process with I18n name like (日本語, Русский) and so on. See attachment.

Version-Release number of selected component (if applicable):
6.3.DR2

How reproducible:
always

Steps to Reproduce:
1. Start Business Central on Windows server
2. Create new Business Process with I18n name like 日本語 or Русский on Windows

Actual results:
It is not possible to create this Business Process with error (just for first try, from the second try it will be no messages at all just not working button OK):
Unable to complete your request. The following exception occurred: java.lang.RuntimeException: org.eclipse.jgit.dircache.InvalidPathException: Invalid path: NewProject/src/main/resources/example/newproject/???.bpmn2.

Expected results:
No I18n restrictions for Windows

Addition information:
There are no specific information about errors in server log

Comment 1 Kirill Gaevskii 2016-03-03 12:16:34 UTC
Created attachment 1132745 [details]
I18n Business Process names  on Windows

Comment 2 Kirill Gaevskii 2016-03-03 12:18:05 UTC
See also bug 1122342

Comment 4 Kirill Gaevskii 2016-03-03 12:49:14 UTC
Update: After first try of I18n named Business Process creation it is not possible to create new Asset (any asset) even with English "correct" name. Server reboot needed.

Comment 5 Jeremy Lindop 2016-03-16 17:14:54 UTC
Created attachment 1137101 [details]
server log with stack trace

Comment 6 Jeremy Lindop 2016-03-16 17:19:30 UTC
This is a case of a more general problem creating resources with i18n characters in names when BPMS is running on Windows. For example, if you try to create a new DRL File with name drl日本語, a popup with this error appears:

Unable to complete your request. The following exception occurred: java.lang.RuntimeException: org.eclipse.jgit.dircache.InvalidPathException:
Invalid path: jdlproj1/src/main/resources/drl??????? .drl.

A similar error occurs when trying to create a BP with i18n chars, and when trying to create a Project with i18n chars, the UI hangs.

I've attached the server log for the case of creating a DRL file.

Comment 7 Jeremy Lindop 2016-03-17 10:08:19 UTC
Eder - I've assigned this over to you as it seems to be a general UF problem when creating resources with i18n characters in names. Toni wonders whether it's an issue with the way we configure jgit.

Comment 10 Lukáš Petrovický 2016-03-22 15:42:42 UTC
The workaround is confirmed effective. This is not a regression, 6.2 behaves in the exact same way.