Bug 711803

Summary: 'File not found' error is returned by browser when trying to download an empty configuration file
Product: Red Hat Satellite 5 Reporter: Pavel Novotny <pnovotny>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 541CC: cperry
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 13:25:24 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:
Bug Depends On:    
Bug Blocks: 462714    

Description Pavel Novotny 2011-06-08 14:33:03 UTC
Description of problem:
If you try to download an empty configuration file via WebUI, browser returns error 'File not found'.

Version-Release number of selected component (if applicable):
spacewalk-java-1.2.39-82.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Create a configuration channel containing an empty file (i.e. with no content specified). 
2. In WebUI, go to page Configuration -> Configuration Files -> <your_empty_config_file>
3. Click on 'download file' link 
  
Actual results:
Firefox 4 returns error message 'File not found' (or 'This webpage is not found' in case of Google Chrome). 

Expected results:
Download the empty file.

Additional info:
Other ways of how to get a config file are working just fine (i.e. API, rhncfg* scripts or scheduling of file deploy in WebUI).

Comment 1 Pavel Novotny 2011-06-08 16:03:38 UTC
This is a regression against Satellite 5.3.0 where no such behaviour has been observed.