Bug 856586

Summary: After creating new file using Satellite API which ends with new lines "\n" these empty lines are lost.
Product: Red Hat Satellite 5 Reporter: Petr Ruzicka <pruzicka>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 541CC: cperry, mhomolov
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-26 12:00:27 UTC 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: 819027    
Attachments:
Description Flags
Reproducer none

Description Petr Ruzicka 2012-09-12 11:16:29 UTC
*** Description of problem:
When I'm trying to create the new config file using API which looks like: "Test\n\n\n\n" - then the last 4 x \n are lost.

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

*** How reproducible:
See the attached script.

*** Steps to Reproduce:
1. See the attached script.
  
*** Actual results:
The empty new lines are lost from the config files.

*** Expected results:
The empty lines should be preserved (they should not be changed).

*** Additional info:

Comment 1 Petr Ruzicka 2012-09-12 11:17:17 UTC
Created attachment 612067 [details]
Reproducer

Comment 2 Tomas Lestach 2012-09-26 12:00:27 UTC
You have to base64 encode the content, if you want to preserve whitespace.

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