Bug 1051469
| Summary: | NPE when building project with kbase or ksession that are not in xsd:ID format | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Jiri Locker <jlocker> | ||||
| Component: | Business Central | Assignee: | Toni Rikkola <trikkola> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Locker <jlocker> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | etirelli, rzhang | ||||
| Target Milestone: | CR1 | ||||||
| Target Release: | 6.0.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-08-06 20:17:04 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: |
|
||||||
Created attachment 848133 [details]
server.log with NPE
We will try to include this in 6.0.0.GA, but since we are very close to the deadline, if we are unable to finish in time, it will be postponed to 6.0.1.GA. User input is now validated. Error dialog explaining constraints for kbase/ksession name is displayed when wrong value is submitted. |
Description of problem: kmodule.xsd requires kbase and ksession names to be xsd:ID strings. If the user enters name containing e.g. spaces (' ') or colons (':') kmodule.xml becomes XSD-invalid. Attempt to build the project will result with error message saying "Unable to complete your request. The following exception occurred: null." and NullPointerException in server log. No explanation of what is wrong. Version-Release number of selected component (if applicable): ER7 How reproducible: - Steps to Reproduce: 1. open Project Editor 2. add kbase named 'my kbase', optionally add ksession named 'stateful session 1' 3. save and build the project Actual results: Build request doesn't finish (it doesn't even finish with failure result and error explanation). NPE in server log. Expected results: Build should complete as failure and result with list of errors. User input validation would be nice. Additional info: The xsd:ID type constraint: https://github.com/droolsjbpm/droolsjbpm-knowledge/blob/master/kie-api/src/main/resources/org/kie/api/kmodule.xsd#L21 The xsd:ID type definition: http://www.schemacentral.com/sc/xsd/t-xsd_ID.html