Bug 1243545 - Assigned resource group list cleared when using group assignment search function
Summary: Assigned resource group list cleared when using group assignment search function
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: UI
Version: JON 3.3.0,JON 3.3.1,JON 3.3.2
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER01
: JON 3.3.4
Assignee: Libor Zoubek
QA Contact: Matt Mahoney
URL:
Whiteboard:
: 1235767 (view as bug list)
Depends On:
Blocks: 1259930
TreeView+ depends on / blocked
 
Reported: 2015-07-15 18:24 UTC by dsteigne
Modified: 2019-09-12 08:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1259930 (view as bug list)
Environment:
Last Closed: 2015-10-28 14:36:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1502663 0 Troubleshoot None JBoss ON role editor does not work correctly if over 100 resource groups exist 2019-07-11 09:28:59 UTC
Red Hat Knowledge Base (Solution) 1531733 0 None None None Never
Red Hat Product Errata RHSA-2015:1947 0 normal SHIPPED_LIVE Important: Red Hat JBoss Operations Network 3.3.4 update 2015-10-28 18:36:15 UTC

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


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