Bug 1014765 - uploading configuration file using 'spacecmd system_addconfigfile' interpreted as binary
Summary: uploading configuration file using 'spacecmd system_addconfigfile' interpret...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.8
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space21
TreeView+ depends on / blocked
 
Reported: 2013-10-02 17:41 UTC by helfman
Modified: 2014-03-04 13:09 UTC (History)
0 users

Fixed In Version: spacecmd-2.1.21-1
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


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