Bug 1206142

Summary: Wrong VMs get selected when editing tags and comparing from VM geneology
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Martin Hradil <mhradil>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: high    
Version: 5.4.0CC: dclarizi, hkataria, jhardy, mpovolny, nachandr, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 12:55:41 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:
Attachments:
Description Flags
genealogy
none
edit tags vm
none
vm comparison none

Description Aziza Karol 2015-03-26 12:37:20 UTC
Created attachment 1006787 [details]
genealogy

Description of problem:
Editing tags or comparing VMs displays different VMs and not the VMs which has been selected.

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

How reproducible:
100%

Steps to Reproduce:
1.Navigate to a VM Summary page and click on Genealogy
2.Either edit tags or do a compare selected VMs
3.

Actual results:
See attached screenshots have selected 2 vms, but it shows wrong Vms

Expected results:
Should select correct Vms for editing tags and comparing

Additional info:

Comment 1 Aziza Karol 2015-03-26 12:38:27 UTC
Created attachment 1006788 [details]
edit tags  vm

Comment 2 Aziza Karol 2015-03-26 12:39:08 UTC
Created attachment 1006789 [details]
vm comparison

Comment 6 CFME Bot 2015-04-22 20:05:49 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/9609ecbc2cdff69a4590833769c3d22c256e4458

commit 9609ecbc2cdff69a4590833769c3d22c256e4458
Author:     Martin Hradil <mhradil>
AuthorDate: Wed Apr 8 19:58:24 2015 +0000
Commit:     Martin Hradil <mhradil>
CommitDate: Wed Apr 22 15:57:56 2015 +0000

    VmCommon#set_checked_items - should not try to remove a trailing | when it's not there
    
    The ids used to have a trailing |, removed in 4ecc3af8
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1206142

 vmdb/app/controllers/vm_common.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comment 7 Oleg Barenboim 2015-04-24 14:23:50 UTC
Can this be moved to POST or awaiting more fixes?

Comment 9 Nandini Chandra 2015-05-07 05:09:20 UTC
Verified in 5.4.0.0.25

Comment 11 errata-xmlrpc 2015-06-16 12:55:41 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://rhn.redhat.com/errata/RHBA-2015-1100.html