Bug 949659 - Alert handler with no configuration options causes globally uncaught exception
Summary: Alert handler with no configuration options causes globally uncaught exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.8
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
: 949658 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 17:27 UTC by Elias Ross
Modified: 2013-09-11 09:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-11 09:52:15 UTC
Embargoed:


Attachments (Terms of Use)
Plugin descriptor (2.69 KB, application/xml)
2013-06-17 20:45 UTC, Elias Ross
no flags Details

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.


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