Bug 1345841

Summary: showing diff of two binary files is nonsense
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: Configuration ManagementAssignee: Jan Dobes <jdobes>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 570CC: dyordano, eherget, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1345843 (view as bug list) Environment:
Last Closed: 2017-10-13 15:16:02 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: 1345843, 1395881    

Description Pavel Studeník 2016-06-13 09:57:46 UTC
Description of problem:
I created configuration channels and upload some plain text and some binary files (zips) to them. When I have to compare all local files then I received strings of binary file. I think that it is not good solution. We can look at behaviour bash application 'diff' and we can see:

>> diff /root/binary.dat /dev/null 
Binary files /root/binary.dat and /dev/null differ

Version-Release number of selected component (if applicable):
rhncfg-5.10.74-10.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. create configure channel with binary file
2. subscribe this channel
3. rhncfg-client diff /file.binary
   rhncfg-namager diff /file.binary -c channel

Actual results:
diff two binary files:
+k]r >W_?S-LB9l쳼Ef[lQUlˋe ?LV׊+2az7PՓnYq2Gbq&<5˂r`laT䣛S/5U^>'
                                                               4[sUO.&t[gn/Sێ;n4M=8Wg5|Jΐ(c=IHI-~=0|l(D)$>jm5}'-VY+?M
$zİ23Zo8[}3\0d>wN(nGT1oNj\4!t)u
-kl#GFe9-^Ǟ@S ?0bkVp2fBSUZ}Qo-&ƂC`JI7-jIFU*3o}R-Xy-sy2_P-XukƁx_bM O5XZV&(plR4+"y=-t3    `fq


Expected results:
something as:
Binary files /root/binary.dat and /dev/null differ