Bug 1223368 - Simulation doesn't clear object when reselecting none
Summary: Simulation doesn't clear object when reselecting none
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: GA
: 5.5.0
Assignee: Milan Zázrivec
QA Contact: Taras Lehinevych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-20 12:14 UTC by Pete Savage
Modified: 2016-08-03 01:32 UTC (History)
6 users (show)

Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-08 13:10:51 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

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


Note You need to log in before you can comment on or make changes to this bug.