Bug 738992
Summary: | XLS decision tables does not support utf-8 in rule names | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Jiri Svitak <jsvitak> | ||||||
Component: | BRE (Expert, Fusion) | Assignee: | Ryan Zhang <rzhang> | ||||||
Status: | VERIFIED --- | QA Contact: | Marek Baluch <mbaluch> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | BRMS 5.2.0.GA | CC: | mbaluch | ||||||
Target Milestone: | --- | ||||||||
Target Release: | BRMS 5.3.0.GA | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | Type: | --- | |||||||
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
Jiri Svitak
2011-09-16 09:39:11 UTC
Created attachment 523532 [details]
Class to reproduce bug
Proposing for 5.3.0. Added pull request with test case: https://github.com/droolsjbpm/drools/pull/88 Jiri's test worked today on master and on 5.3.x without modifications in the code. Whatever it was, it works now (at least on my machine with the latest master and latest 5.3.x branch). https://github.com/droolsjbpm/drools/pull/88 Please verify the issue on 5.3 ER4. Not fixed in BRMS 5.3 ER4. I have checked community master and 5.3.x branches and it works. So the problem appears during productization. Perhaps bad locale or XLS library. Reassigning to Ryan and setting status to ASSIGNED. Emm. The testcase mentioned at comment 3 have no problem with product source too. I have checked the attached testcase. It seems to me that there are some difference between the two version unicode.xls. After changing the package name to "com.sample" and using the unicode.xls in comment 3(not the attachement), the testcase passed. I attached the passed unicode.xls. Btw, The line in main need also update to fit the unicode.xls Change assertNotNull(kbase.getRule("com.sample", "pokusné pravidlo rozhodovací tabulky")); to assertNotNull(kbase.getRule("com.sample", "přidej k dospělým")); Jiri, could you have a look on this? Created attachment 567499 [details]
unicode1.xls
Thanks Ryan, I have checked your unicode1.xls with BRMS 5.3 ER4 binaries and it passes. After some additional checking I have found out that this is not a problem of some specific utf-8 characters, but this is a problem of corrupted .xls files. Some .xls files can be build with a KnowledgeBuilder, some others cannot, even if they contain the same characters. I have used LibreOffice, sometimes it saved files correctly (were buildable), sometimes it didn't (unable to build). So, this is not a problem of BRMS. If you experience problems with building your .xls files with utf-8, just make sure that you have no error in a decision table and if not, try to modify it and save it in different version of LibreOffice/Excel and make sure that you have correct version of .xls file too. If you use Eclipse and you have Drools Builder enabled, then corrupted .xls files are marked with a small red cross, which indicates a build error. Also you can try saving your decision table as a .csv file and this should always work without any problems. |