Bug 795834

Summary: If you use the spacewalk xmlrpc api to create or update a config file the whitespaces at beginning and end of the file are removed
Product: [Community] Spacewalk Reporter: hwinther
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.6CC: hwinther
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: 2012-02-21 16:27:35 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: 765736    
Attachments:
Description Flags
a python script to illustrate the issue none

Description hwinther 2012-02-21 15:54:20 UTC
Description of problem:
If you use the spacewalk xmlrpc api to create or update a config file the whitespaces at beginning and end of the file are removed. 
I have included a small python script to illustratate the issue.


How reproducible:
make a xmlrpc connection and create a file with whitespaces at beginning and/or end of the file with the api call "configchannel.create".

  
Actual results:
The white spaces are removed.


Expected results:
The white spaces should be in the file.

Comment 1 hwinther 2012-02-21 15:56:22 UTC
Created attachment 564729 [details]
a python script to illustrate the issue

Comment 2 Tomas Lestach 2012-02-21 16:27:35 UTC
This has been addressed in Spacewalk 1.2.

Please, check BZ#595500 for more information.

*** This bug has been marked as a duplicate of bug 595500 ***