Bug 711809 - Cannot create an empty configuration file via file upload
Summary: Cannot create an empty configuration file via file upload
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 541
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-06-08 15:04 UTC by Pavel Novotny
Modified: 2014-07-04 13:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:28:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.