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:
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.
*** Bug 1235767 has been marked as a duplicate of this bug. ***
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)
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.
Verified fixed in JON 3.3.4 ER1. "Roles.Edit Roles.Resource Groups" now properly displays Assigned Resource Groups list when entering Search criteria.
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