Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 783577

Summary: System Templates - Removing an unsaved template triggers problematic Confirm message
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.0.0CC: jsherril, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:22:05 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:

Description Corey Welton 2012-01-20 21:55:11 UTC
Description of problem:
Upon deletion of a system template, sometimes the UI pops up a confirm button that, when confirming, causes a UI error. Additionally, sometimes the left pane does not reset, returning to the "home" breadcrumb, but this is harder to reproduce

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


How reproducible:


Steps to Reproduce:
1.  Sync RH content
2.  Create a new template, "blah"
3.  System Templates (left pane) > Products; in the search box, enter "R" and select one of the resulting products; +Add
4.  Click the remove button at the bottom of the pane (not the product 'Remove' link); confirm
5.  View secondary confirm button that appears ("Save Changes", "Discard Changes")
6.  Hit "Save Changes"
  
Actual results:
* Most of the time - Error box requiring page reload.
* Occasionally (haven't figured out the heuristic) - template gets removed but left pane does not update - still shows items in various states of +Add / +Remove

Expected results:
I don't think we should be seeing this at all. I think this is an artifact of modifying an unsaved template.



Additional info:
The error message sometimes seen is similar to that of bug #751159

Comment 2 Corey Welton 2012-02-22 04:09:59 UTC
Step 3 above should read "right pane" :P

This is seriously ugly. I'm not sure why we can hit the remove button before a template has ever been saved. But it breaks the page in strange and interesting ways.

Comment 3 Justin Sherrill 2012-02-29 19:35:32 UTC
Fixed it so we do not ask to 'save changes'  if you've deleted.  That wasn't intended to show up after deletion.

61585fdaf16d20d9826dda20a01bdf700c517cfa

Comment 5 Corey Welton 2012-03-01 19:58:57 UTC
QA Verified.  0.1.301-2.el6