[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    


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

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

The exception message is shown.

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

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 Thu Jun 21 20:10:50 CEST 2018 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.