Project

General

Profile

Actions

Bug #6655

closed

Clear _ForemanSelectedhosts cookie when an action is performed

Added by Dylan Charleston almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We recently had an incident where a large number of our production boxes were accidently deleted in part due to user error and another in what I think should be labeled as a bug.

Current behavior:
User does a search for specific hosts, selects a number of hosts to perform an action on. These host ids are added to the _ForemanSelectedhosts cookie. User executes action. User searches for another host and selects it for a action. _ForemanSelectedhosts still contains hosts from the previous selection even though they don't show up in the most recent search. You can verify this by highlighting over the top select checkbox or on the verification page when you go to perform the action.

Suggested behavior:
Though the hosts show up in the verification popup when you perform the action, you don't expect hosts that weren't recently selected to still be included in the action. I think it makes sense to clear the _ForemanSelectedhosts cookie once an action like "Build hosts" or "Change Group" has been performed.


Related issues 3 (2 open1 closed)

Related to Foreman - Bug #3310: Hosts stay selected after host table refreshNew10/16/2013Actions
Related to Foreman - Bug #9880: Selected hosts remain after closing and revisiting host listNew03/24/2015Actions
Related to Foreman - Bug #10408: Host checkboxes get cleared after action takenClosedAmir Fefer05/07/2015Actions
Actions

Also available in: Atom PDF