Bug 601991

Summary: resource "picker" for specific-resource mode for operation-based alert sender throws exception
Product: [Other] RHQ Project Reporter: Joseph Marques <jmarques>
Component: AlertsAssignee: Joseph Marques <jmarques>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir D <sdharane>
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.0.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:51:04 UTC Type: ---
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: 593121, 602194    

Description Joseph Marques 2010-06-09 00:50:01 UTC
Description of problem:

The operation-based alert sender allows executing an operation on a specific other resource by specifying the resourceId (primary key) of that resource.  There is a button labeled "Pick" which pops open a modified inventory/resource browser to allow the user full access to the SearchBar to find the other resource in question.  But when the user types something into the SearchBar, an exception is thrown (see actual results below)

Steps to Reproduce:
1. Create an alert notification (create an alert definition if necessary)
2. Select "resource operation" type
3. select "specific resource" mode option
4. Click the button labeled "Pick"
5. In the windows that pops open, type a few (any) chars into the SearchBar

Actual results:

Exception during request processing:
Caused by javax.servlet.ServletException with message: "/rhq/inventory/resourcePicker.xhtml @52,52 suggestionAction="#{BrowseResourcesUIBean.autocomplete}": Method not found: org.rhq.enterprise.gui.inventory.browse.BrowseResourcesUIBean(java.lang.Object)"

Expected results:

the SearchBar works

Additional info:

Comment 1 Joseph Marques 2010-06-09 15:48:14 UTC
commit c5915c8806a44de879787fd5a3f883203900c829
Author: Joseph Marques <joseph>
Date:   Wed Jun 9 02:36:26 2010 -0400

    BZ-601991: fix resource "picker" for specific-resource mode for operation-based alert sender
    
    * simplify picker-popup by removing resource tabs
    ** this was broken anyway (resourcePicker.xhtml had no JSF nav rules)
    * update resourcePicker.xhtml to use GWT-based SearchBar instead of just a plain text input
    * appropriately size the popup so that scrollbars will not display by default

Comment 2 Sudhir D 2010-06-10 15:35:38 UTC
I verified this against the Beta build 2.4.0.Beta01. I did not get any exception while searched for the resource and picked the suggested. 

Marking this bug as verified.

Comment 3 Corey Welton 2010-08-12 16:51:04 UTC
Mass-closure of verified bugs against JON.