Bug 1258460

Summary: Delete selected hosts cookie on action submit
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: WebUIAssignee: Shlomi Zadok <szadok>
WebUI sub component: Foreman QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED WONTFIX Docs Contact:
Severity: unspecified    
Priority: unspecified    
Version: 6.1.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6655
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-31 14:26:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Zapletal 2015-08-31 12:46:48 UTC
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.

This bug is proposed for backporting into 6.1 because Foreman Discovery uses the new "build_modal" function. This is an important bug to have, so rather than changing the way how discovery builds modal forms we should include this one.

Comment 2 Bryan Kearney 2015-08-31 14:04:09 UTC
Upstream bug assigned to szadok

Comment 3 Bryan Kearney 2015-08-31 14:04:10 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6655 has been closed
-------------
Shlomi Zadok
Applied in changeset commit:8f38e945032c97cf6f2c01ba9080f3129f1327e6.

Comment 4 Lukas Zapletal 2015-08-31 14:25:59 UTC
Ok closing this bug as it will be easier to change the discovery downstream only.