Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1243545

Summary: Assigned resource group list cleared when using group assignment search function
Product: [JBoss] JBoss Operations Network Reporter: dsteigne
Component: UIAssignee: Libor Zoubek <lzoubek>
Status: CLOSED ERRATA QA Contact: Matt Mahoney <mmahoney>
Severity: urgent Docs Contact:
Priority: urgent    
Version: JON 3.3.0, JON 3.3.1, JON 3.3.2CC: fbrychta, loleary, miburman, mmahoney, mshirley, theute
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1259930 (view as bug list) Environment:
Last Closed: 2015-10-28 14:36:55 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:
Bug Depends On:    
Bug Blocks: 1259930    

Description dsteigne 2015-07-15 18:24:57 UTC
Description of problem:
When one role has a resource group assigned it is possible to add another one by picking it directly in the list of available groups. 

However using the search box not only filters the available groups list but the already assigned groups list as well. The assigned groups list is cleared from already assigned groups that do not comply with search filter. 

Saving commits the 'new' filtered list, effectively removing formerly assigned groups.

Therefore it is not possible to use 'search' to find additional groups to assign. Only picking them from the list works.

Version-Release number of selected component (if applicable):
3.3.0, 3.3.1, 3.3.2

How reproducible:
Always

Steps to Reproduce:
1. Create a new Role, assign a Resource Group, ie. group 'abc'
2. Save the Role
3. Edit the same Role again on the Resource Group tab, enter a value that doesn't match the already assigned group, ie. 'def'

Actual results:
In the Available and the Assigned Groups only groups matching that search appear and it removes the already assigned group 'abc'


Expected results:

The Search filter should only apply to the available unassigned resource groups


Additional info:

Comment 1 Libor Zoubek 2015-09-01 13:06:46 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/ab8eed7d1
time:    2015-09-01 15:06:06 +0200
commit:  ab8eed7d1583999ee53fbbb5a8883261110effb7
author:  Libor Zoubek - lzoubek
message: Bug 1243545 - Edit Role: Assigned resource groups list is filtered when 
         using search box

         remove doPostPopulateAvailableGrid implementation which was
         explicitly re-setting contents of assignedGrid. Implementation
         in abstract class is used instead.

Comment 2 Marc Shirley 2015-09-01 21:28:55 UTC
*** Bug 1235767 has been marked as a duplicate of this bug. ***

Comment 3 Michael Burman 2015-09-25 07:41:59 UTC
Cherry-picked to release/jon3.3.x:

commit f922f0b9d522730bf5b2ae50d3f6bbcbc5c40bd3
Author: Libor Zoubek <lzoubek>
Date:   Tue Sep 1 15:02:10 2015 +0200

    Bug 1243545 - Edit Role: Assigned resource groups list is filtered when
    using search box
    
    remove doPostPopulateAvailableGrid implementation which was explicitly
    re-setting contents of assignedGrid. Implementation in abstract class is
    used instead.
    
    (cherry picked from commit ab8eed7d1583999ee53fbbb5a8883261110effb7)

Comment 4 Simeon Pinder 2015-10-09 04:40:19 UTC
Moving to ON_QA as available to test with the following build:
https://brewweb.devel.redhat.com/buildinfo?buildID=460382

 *Note: jon-server-patch-3.3.0.GA.zip maps to ER01 build of
 jon-server-3.3.0.GA-update-04.zip.

Comment 5 Matt Mahoney 2015-10-09 14:23:52 UTC
Verified fixed in JON 3.3.4 ER1.

"Roles.Edit Roles.Resource Groups" now properly displays Assigned Resource Groups list when entering Search criteria.

Comment 7 errata-xmlrpc 2015-10-28 14:36:55 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/RHSA-2015-1947.html