Bug 751159

Summary: System Templates: Attempting to Download an unsaved template prompts user about leaving page, sometimes throws error message.
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Mike McCune <mmccune>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
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: 2013-09-19 18:12:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Corey Welton 2011-11-03 17:25:17 UTC
Description of problem:
I didn't get a screenshot of the error message, I will attach it if I ever see it again.  

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


How reproducible:


Steps to Reproduce:
1.  Sync some RH content
2.  Create a new system template
3.  Add some packages and package groups to the system template; save
4.  Add another package to the system template; do /not/ save.
5.  Bring up the download menu and hit the Download button  
Actual results:


Current results:
Dialogue box:

The current template "Test System Template" has been modified. If you leave, any changes will be lost."

Are you sure you want to leave this page?

Clicking "Leave" allows user to download (the old, saved) template
Clicking "Stay" returns user to view

*sometimes*, doing one of these returns an error about being unable to retrieve template and indicates user needs to reload page.

Expected results:
* We're not really naving away from an unsaved template, so probably shouldn't see the message
* Not sure if we should be allowed to download the unsaved template - probably not.

Additional info:

Comment 1 Mike McCune 2012-01-26 19:39:15 UTC
mass move to CFSE product.

Comment 3 Justin Sherrill 2012-12-18 23:23:32 UTC
agree with you corey, we shouldn't really allow you to download a modified template.  Would the user expect to download the modified or unmodified version?  

To fix it, i disabled the download button if the template is modified.  To make it clear what's going on, I added a tipsy that only is enabled when the button is downloaded for this reason.

d29586a2f079c75e05df9e233a69d03cc0d6f5c3

Comment 4 Mike McCune 2013-09-19 18:12:26 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.