Bug 1223368

Summary: Simulation doesn't clear object when reselecting none
Product: Red Hat CloudForms Management Engine Reporter: Pete Savage <psavage>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Taras Lehinevych <tlehinev>
Severity: low Docs Contact:
Priority: medium    
Version: 5.4.0CC: dajohnso, hkataria, jhardy, mpovolny, obarenbo, tlehinev
Target Milestone: GA   
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-08 13:10:51 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 Pete Savage 2015-05-20 12:14:26 UTC
Description of problem: Simulation doesn't clear object when reselecting none


Version-Release number of selected component (if applicable):5.4.0.1


How reproducible:100%


Steps to Reproduce:
1. In Automate -> Simulation
2. Request: InspectMe
3. Select the Object Attribute to be 'VM and Instance'
4. Select a VM
5. Tick Execute Methods
6. Run the simulation
7. Change the Object Attribute to <None>
8. Re run the simulation

Actual results:
The object from the previous run is used


Expected results:
None should be used


Additional info:

Comment 2 Milan Zázrivec 2015-05-21 15:36:31 UTC
https://github.com/ManageIQ/manageiq/pull/2969

Comment 3 CFME Bot 2015-05-22 21:21:17 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/ae8cfa7fb8867febe725b86ee43787d00da733ac

commit ae8cfa7fb8867febe725b86ee43787d00da733ac
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Thu May 21 17:33:37 2015 +0200
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Thu May 21 17:36:02 2015 +0200

    Simulation input: correctly reset object attribute
    
    We need to set @sb[:obj] to nil whenever we reset the object attribute
    to none. Otherwise previously used (loaded) value would be used.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1223368

 vmdb/app/controllers/application_controller/automate.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comment 4 Taras Lehinevych 2015-10-05 16:14:54 UTC
Verified fixed in version 5.5.0.3

Repeat the steps for reproducing, system correctly cleans the object attribute fields.

Comment 6 errata-xmlrpc 2015-12-08 13:10:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551