Bug 856586 - After creating new file using Satellite API which ends with new lines "\n" these empty lines are lost.
Summary: After creating new file using Satellite API which ends with new lines "\n" th...
Keywords:
Status: CLOSED DUPLICATE of bug 595500
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 541
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 819027
TreeView+ depends on / blocked
 
Reported: 2012-09-12 11:16 UTC by Petr Ruzicka
Modified: 2018-11-29 20:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-26 12:00:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Reproducer (793 bytes, application/x-perl)
2012-09-12 11:17 UTC, Petr Ruzicka
no flags Details

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 ***


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