Bug 831603

Summary: If initial template is deleted, the user can not create a new template
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: driftAssignee: John Sanda <jsanda>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.4CC: jsanda
Target Milestone: ---   
Target Release: RHQ 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 832041 (view as bug list) Environment:
Last Closed: 2013-09-01 10:14:03 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:
Bug Depends On:    
Bug Blocks: 832041    

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.