Bug 549370 - spacewalk-report generates lines ending with CR and LF
Summary: spacewalk-report generates lines ending with CR and LF
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: New Feature
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat531-reports
TreeView+ depends on / blocked
 
Reported: 2009-12-21 13:58 UTC by Jan Hutař
Modified: 2010-01-07 14:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-07 14:10:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2009-12-21 13:58:57 UTC
Description of problem:
spacewalk-report generates lines ending with CR and LF (for both header and data lines).


Version-Release number of selected component (if applicable):
spacewalk-reports-0.7.0-2.el4sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # spacewalk-report entitlements | grep '^1,Red Hat SatTeam,channel,Red Hat Network Proxy,0,100$'


Actual results:
# spacewalk-report entitlements | grep '^1,Red Hat SatTeam,channel,Red Hat Network Proxy,0,100$'
<no output>
# spacewalk-report entitlements | grep "^1,Red Hat SatTeam,channel,Red Hat Network Proxy,0,100[[:space:]]\?$" | hexdump 
0000000 312c 5265 6420 4861 7420 5361 7454 6561
0000010 6d2c 6368 616e 6e65 6c2c 5265 6420 4861
0000020 7420 4e65 7477 6f72 6b20 5072 6f78 792c
0000030 302c 3130 300d 0a00                    
0000037


Expected results:
# spacewalk-report entitlements | grep '^1,Red Hat SatTeam,channel,Red Hat Network Proxy,0,100$'
1,Red Hat SatTeam,channel,Red Hat Network Proxy,0,100


Additional info:
It just confused me as on Linux expected end of line is just LF. Please close if this is expected and wanted.

Comment 1 Jan Pazdziora (Red Hat) 2010-01-04 12:24:44 UTC
Fixed in Spacewalk master 0d1b0f27a722bc54783242752c4b24373b1f3b46, fixed in
SATELLITE-5.3 d1c660aea992351f1458c739e4f894bc42cad079.

Comment 3 Jan Pazdziora (Red Hat) 2010-01-04 14:13:19 UTC
Tagged and built as spacewalk-reports-0.7.1-1.

Comment 4 Jan Hutař 2010-01-07 14:08:08 UTC
Tested using rh-tests-RHN-Satellite-Other-Sanity-reporting-general-1.0-11.

Comment 5 Jan Pazdziora (Red Hat) 2010-01-07 14:10:58 UTC
Released in errata http://rhn.redhat.com/errata/RHEA-2010-0015.html


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