Bug 1082032
| Summary: | NPE displayed in the output of rest query which tries to retrieve information about work item which not exists | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Anton Giertli <agiertli> | ||||||
| Component: | Business Central | Assignee: | Marco Rietveld <mrietvel> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivo Bek <ibek> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 6.0.1 | CC: | ibek, kverlaen, smcgowan, vigoyal | ||||||
| Target Milestone: | ER1 | ||||||||
| Target Release: | 6.0.2 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: |
A NullPointerException was displayed to the user when a query was made via a REST command for a WorkItem that didn't exist. Instead of informing the user that the WorkItem didn't exist anymore, the exception was displayed.
This has now been fixed by displaying a user friendly message on execution of such a query: 'RestOperationException thrown with message 'WorkItem 1 does not exist.'
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-08-06 19:51:09 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
Anton Giertli
2014-03-28 14:07:53 UTC
This probably applies for other queries as well - please do change the output to something more user friendly when the query is not valid. Created attachment 881723 [details]
xml error
Created attachment 881725 [details]
bpmn process used for testing
Hi, after brief consultation with Marco I have another findings. Even though the process is still active it is not possible to query the WorkItem which is already finished. I would expect that the WorkItem should be available *at least* through the whole process lifecycle. I have attached: - xml which contains the error - bpmn process which I have used for testing The sequence I have used for testing : - [GET] http://localhost:8080/business-central/rest/runtime/org.kie.example:project1:1.0.0-SNAPSHOT/workitem/1 - [POST] http://localhost:8080/business-central/rest/runtime/org.kie.example:project1:1.0.0-SNAPSHOT/workitem/1/complete?map_tVar=value - [GET] http://localhost:8080/business-central/rest/runtime/org.kie.example:project1:1.0.0-SNAPSHOT/workitem/1 - NPE is displayed ------at this point I would expect a proper answer with the result elements filled with data I have supplied in the previous step. Cheers, Anton Fixed. Commits: 6.0.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/4417972c master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/ca8b3e7c Verified in BPMS 6.0.2.ER2 Now the response contains 'RestOperationException thrown with message 'WorkItem 1 does not exist.' |