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.
Updated by James Shewey almost 7 years ago
It appears no message is splashed when environments are successfully deleted either.
Updated by Anonymous almost 7 years ago
- Project changed from Foreman to Katello
- Category deleted (
Web Interface)
Updated by Eric Helms almost 7 years ago
- Category set to Web UI
- Translation missing: en.field_release set to 284
Updated by John Mitsch over 6 years ago
- Translation missing: en.field_release changed from 284 to 352