Red Hat Bugzilla – Bug 991098
200 OK returned when starting non existing task via REST, but server log contains NPE
Last modified: 2016-09-20 01:04:43 EDT
Created attachment 781665 [details]
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.
Fixed with this commit:
I did not change the status to modified because I don't know what the correct target milestone is.
Verified on BPMS 6.0.0.ER2