Project

General

Profile

Bug #21967

No error message for failed lifecycle environment deletion

Added by James Shewey almost 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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.

History

#2 Updated by James Shewey almost 4 years ago

It appears no message is splashed when environments are successfully deleted either.

#3 Updated by Anonymous almost 4 years ago

  • Category deleted (Web Interface)
  • Project changed from Foreman to Katello

#4 Updated by Eric Helms almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 284
  • Category set to Web UI

#5 Updated by John Mitsch over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 284 to 352

Also available in: Atom PDF