Bug 1014765

Summary: uploading configuration file using 'spacecmd system_addconfigfile' interpreted as binary
Product: [Community] Spacewalk Reporter: helfman
Component: ClientsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.8   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: spacecmd-2.1.21-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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: 1069560    

Description helfman 2013-10-02 17:41:57 UTC
Description of problem:
Uploading a configuration file or a text file is interpreted as binary, when it is not.


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

How reproducible:
echo test > /tmp/testfile
upload to local config channel using spacewalk

Steps to Reproduce:
1. echo test > /tmp/testfile
2. spacecmd {SSM:0}> system_addconfigfile $HOST -f /tmp/testfile -p /tmp/testfile -L 

Actual results:

INFO: trailing newlines detected, uploading as binary
Path:            /tmp/testfile
Directory:       False
Owner:           root
Group:           root
Mode:            0644
SELinux Context: 

Contents not displayed (base64 encoded)

Is this ok [y/N]: y

Expected results:
File is text, and should be uploaded as text.

$file /tmp/testfile
testfile: ASCII text


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information: 


Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information: 


Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Milan Zázrivec 2013-12-20 16:30:06 UTC
Fixed in spacewalk.git master: 48248b7818e8b09bf25c6407c1d285baa1cca857

Thank you for your report.

Comment 2 Matej Kollar 2014-01-17 12:16:27 UTC
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.

Comment 3 Matej Kollar 2014-03-04 13:08:38 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21

Comment 4 Matej Kollar 2014-03-04 13:09:10 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21