Bug #21967
openNo error message for failed lifecycle environment deletion
Description
When you attempt to delete a lifecycle environment that has an associated activation key, no error is thrown. It simply appears like the "Remove Environment" button does not work.
To reproduce:
- Create a Lifecycle Environment
- Create an activation key and associate it with that Lifecycle environment
- Try to delete the environment
Additional details:
This error occurs because the call to the REST api returns 400 Bad Request, but no error message is splashed in the GUI. If you manually delete the Lifecycle environment using curl and the REST api, you receive back:
{"displayMessage":"Lifecycle Environment arptest has associated Activation Keys. Please change or remove the associated Activation Keys before trying to delete this lifecycle environment.","errors":["Lifecycle Environment arptest has associated Activation Keys. Please change or remove the associated Activation Keys before trying to delete this lifecycle environment."]}
However, this error needs to be passed back to the user in the GUI. Tested in Firefox and Chrome and this occurs in both browsers.