Bug 991098

Summary: 200 OK returned when starting non existing task via REST, but server log contains NPE
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: rzhang, smcgowan
Target Milestone: ER2   
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:09:39 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
server log none

Description Radovan Synek 2013-08-01 15:45:24 UTC
Created attachment 781665 [details]
server log

version: 6.0.0.CR1

Trying to start some task which does not exist by POST http://localhost:8080/business-central/rest/task/12345

The response is 200 OK is returned, but server log contains NPE: Unable to execute StartTaskCommand because of NullPointerException

1) why not to return 500 - internal server error with description of the problem?

2) couldn't be the NPE caught and replaced by more informative IllegalArgumentException (again, with some description)?

See the attached server log for more details.

Comment 1 Marco Rietveld 2013-08-06 20:48:57 UTC
Fixed with this commit: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/0f27ff1bdfd4f553d1bb40bdde4d2400cf032a71

I did not change the status to modified because I don't know what the correct target milestone is.

Comment 2 Radovan Synek 2013-09-04 11:41:19 UTC
Verified on BPMS 6.0.0.ER2