[CAM-8074] Exception message is not shown when a batch operation fails in Cockpit Created: 27/Jul/17  Updated: 30/Aug/17  Resolved: 04/Aug/17

Status: Closed
Project: camunda BPM
Component/s: cockpit
Affects Version/s: 7.8.0-alpha2
Fix Version/s: 7.8.0, 7.8.0-alpha3

Type: Bug Report Priority: L3 - Default
Reporter: Smirnov Roman Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Attachments: PNG File cockpit-failed-batch.png    

 Description   

Steps to reproduce:
1) go to batch operation page in cockpit
2) execute for example the operation "set retries of jobs ..."
3) add the search criteria "Finished Only"
4) execute the batch operation

Problem:
The batch operation fails, but the exception message is not visible in cockpit (see attached screenshot)

Expected:
The exception message is shown.

Hint:
The same behavior can also observed in case of other batch operations.



 Comments   
Comment by Sebastian Stamm [ 03/Aug/17 ]

I think ['unknown', 'payload'].indexOf(executionCtrl.getErrorType()) <= -1 can never be true as the getErrorType method always returns either payload or unknown.

We can probably get rid of the getErrorType method altogether as we don't display different messages depending on the type of the error.

Comment by Sebastian Stamm [ 04/Aug/17 ]

The getErrorType method is not used anymore so we should remove it from the execution component and the tests. Also, the indentation of the template file should be adjusted.

Generated at Wed Sep 20 04:02:21 CEST 2017 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.