Bug 549370

Summary: spacewalk-report generates lines ending with CR and LF
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: New FeatureAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 530   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-07 14:10:58 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: 518257    

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 2010-01-04 12:24:44 UTC
Fixed in Spacewalk master 0d1b0f27a722bc54783242752c4b24373b1f3b46, fixed in
SATELLITE-5.3 d1c660aea992351f1458c739e4f894bc42cad079.

Comment 3 Jan Pazdziora 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 2010-01-07 14:10:58 UTC
Released in errata http://rhn.redhat.com/errata/RHEA-2010-0015.html