Bug 1230987
| Summary: | Process with space in the name breaks the Form Editor | |||
|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | William Antônio <wsiqueir> | |
| Component: | Business Central | Assignee: | Marco Rietveld <mrietvel> | |
| Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.1.0 | CC: | lpetrovi | |
| Target Milestone: | DR1 | |||
| Target Release: | 6.2.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1231365 (view as bug list) | Environment: | ||
| Last Closed: | 2020-03-27 20:12:50 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1231365 | |||
|
Description
William Antônio
2015-06-12 00:47:18 UTC
The error is printed from class JbpmPreprocessingUnit at line 203:
try {
evaluateWorkDefinitions(workDefinitions, entry, asset.getAssetLocation(), repository, profile);
} catch(Exception e) {
_logger.error("Unable to parse a workitem definition: " + e.getMessage());
}
With further debugging I found that the actually cause if the error is an URI parsing:
java.net.URISyntaxException: Illegal character in path at index 33: default://master@repository1/With Space/src/main/resources/defaultemailicon.gif
It is thrown when it is checked if the icon exists (line 362 of class JbpmPreprocessingUnit):
----
String absoluteIcon = createAbsoluteIconPath(assetLocation, icon);
if (repository.assetExists(absoluteIcon)) {
icon = absoluteIcon;
iconFound = true;
}
----
The method only receives a String so it probably fails with all Strings that contains spaces. The solution would be format the String accordingly, but I am not sure if using URI encoding is the proper way. Notice that simply replace the spaces will probably result in problems if the project has special characters.
Should we document that projects should not contain space/special characters or format the icon name accordingly?
In any case, I could workaround this issue by replacing the spaces in the name of the project by "%20", but I see that the assetLocation is used in a lot of other places.
I hope this helps.
Fixed - see clone for details https://bugzilla.redhat.com/show_bug.cgi?id=1231365#c3 I followed the steps to reproduce the problem on 6.2.0.ER and there weren't any problems - Form Editor works fine in a process with a space in it's name, so I consider this verified. |