Steps to reproduce:
- deploy a process that contains an external task
- start an instance of that process
- set external task retries by executing the following request (see [1]):
PUT /external-task/{id}/retries { "retries": null }
Observed behavior:
- The retries are set to 0.
- An incident is created.
- The response status code is 204.
Expected behavior:
- The number of retries is checked, when it is set to null, then a "Bad Request" (status code 400) is returned.
So that:
- The retries are not changed.
- No incident is created.
Edit:
The same is valid for "Set Retries For Multiple External Tasks Sync/Async" [2] and [3].
[1]: https://docs.camunda.org/manual/7.9/reference/rest/external-task/put-retries/
[2]: https://docs.camunda.org/manual/develop/reference/rest/external-task/put-retries-sync/
[3]: https://docs.camunda.org/manual/develop/reference/rest/external-task/post-retries-async