Bug 831603 - If initial template is deleted, the user can not create a new template
Summary: If initial template is deleted, the user can not create a new template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: drift
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: RHQ 4.5.0
Assignee: John Sanda
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 832041
TreeView+ depends on / blocked
 
Reported: 2012-06-13 12:18 UTC by Heiko W. Rupp
Modified: 2013-09-01 10:14 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 832041 (view as bug list)
Environment:
Last Closed: 2013-09-01 10:14:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2012-06-13 12:18:15 UTC
If a user has gone to Admin->Config->Drift definitions and e.g. deleted the only template for an AS5 server, it is not possible to create a new template by pressing the new button.
The UI shows a red bar "Some non caught exception has happened" and the grey screen will stay on screen -- one has to reload the whole RHQ UI to continue.

To bugs:
- can not create a template without another template that is used as template :-)
- on Error, the UI becomes non-responsive

There is no error in the log or in the message center.

Comment 2 John Sanda 2012-06-14 11:17:53 UTC
DriftTemplateManagerBean now throws an IllegalArgumentException if you try to delete a plugin defined template. The delete action in the templates ui is now disabled for plugin defined templates. Changes have been pushed to master.

commit hash: b8a19a54ca7e

Comment 3 Heiko W. Rupp 2013-09-01 10:14:03 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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