Bug 949659

Summary: Alert handler with no configuration options causes globally uncaught exception
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: Core UIAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5CC: genman, hrupp
Target Milestone: ---   
Target Release: RHQ 4.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 09:52:15 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
Plugin descriptor none

Description Elias Ross 2013-04-08 17:27:17 UTC
Description of problem:

I have an server plugin--actually an alert plugin--with no configuration options required when creating the alert. This causes an exception to occur in the UI.

This plugin pulls configuration from the resource tags.


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


How reproducible:

Always


See attached plugin descriptor for an example.

Comment 1 Elias Ross 2013-04-08 17:28:01 UTC
It does not stop the plugin from being used, it just raises an error. So it's fairly harmless but confusing for users.

Comment 2 Elias Ross 2013-04-16 02:13:15 UTC
*** Bug 949658 has been marked as a duplicate of this bug. ***

Comment 3 Heiko W. Rupp 2013-06-17 12:48:16 UTC
Elias,
I don't see the attached descriptor.

When does the error show? When adding this plugin as notification sender?

Comment 4 Elias Ross 2013-06-17 20:45:57 UTC
Created attachment 762204 [details]
Plugin descriptor

Sorry about not including it. The error is harmless, just alarming: It shows 'Globally caught exception' with nothing in the server logs. I'm guessing it's because there are no config options to set.

This is on the 'Add Notification' selection screen BTW.

Comment 5 Heiko W. Rupp 2013-06-18 07:31:46 UTC
Thanks for the response. 

Server log shows:

09:18:12,131 ERROR [org.rhq.enterprise.server.alert.AlertNotificationManagerBean] (http-/0.0.0.0:7080-1) org.rhq.core.clientapi.agent.metadata.InvalidPluginDescriptorException: Configuration properties are missing. Resource configurations must have at least one group or one config-property as a child.

While I agree, that we should not show this error (in the UI), the solution from the user side is probably to not include an <alert-configuration/> section at all.

Comment 6 Heiko W. Rupp 2013-06-18 07:44:54 UTC
master 12c501fce9d4

Comment 7 Heiko W. Rupp 2013-09-11 09:52:15 UTC
Bulk closing of old issues now that HRQ 4.9 is in front of the door.

If you think the issue has not been solved, then please open a new bug and mention this one in the description.