Bug 711809

Summary: Cannot create an empty configuration file via file upload
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: ---   
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:28:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description Pavel Novotny 2011-06-08 15:04:53 UTC
Description of problem:
Creation of empty configuration file by uploading it through WebUI does not work. WebUI does not allow to upload empty file. It is an inconsistency in general behaviour, because all other ways (API, rhncfg* scripts or manual creation via WebUI) work.

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

How reproducible:
always

Steps to Reproduce:
1. On your local machine create an *empty* file you want to upload.
2. On Satellite, create a configuration channel and go to its details page.
3. Go to tab Add Files -> Upload File.
4. As 'File to Upload' select your file created in step 1.
5. Fill other mandatory fields and submit the form.
  
Actual results:
Big red error message is displayed: Error creating Configuration File Revision: File <your_file> is empty.

Expected results:
Allow to upload empty config file.

Additional info:

Comment 1 Tomas Lestach 2011-06-13 17:22:10 UTC
Hmm, if you were notified, your file is empty, then it's not a bug.
It's a new feature you require.

Have you tried to upload the new file as Binary?

Comment 2 Pavel Novotny 2011-06-15 12:51:49 UTC
Uploading an empty file as Binary leads to the same result as with Text file type - a warning message.