Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1597824

Summary: TFTP transfer alters the file, when sent from server running tftp-5.2-22 to client running tftp-5.2-11
Product: Red Hat Enterprise Linux 7 Reporter: Ravindra Patil <ravpatil>
Component: tftpAssignee: Jan Synacek <jsynacek>
Status: ASSIGNED --- QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.1CC: jvavra
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1630908, 1643104    
Attachments:
Description Flags
Binary file used to test this behavior of tftp none

Description Ravindra Patil 2018-07-03 16:46:15 UTC
Created attachment 1456293 [details]
Binary file used to test this behavior of tftp

Description of problem:
TFTP transfer between the server running tftp-5.2-22 and the client running tftp-5.2.11 changes the file.

Version-Release number of selected component (if applicable):
tftp-5.2-11.el7.x86_64

How reproducible:

On Server Side : tftp-5.2-22.el7.x86_64  : RHEL 7.5

# md5sum last
8e0ac1058ab6cb3876ecaa727b2313fd  last
# ls -l last
-rwxr-xr-x. 1 root root 19568 Jan 27  2014 last


Client Side : tftp-5.2-11.el7.x86_64  : RHEL 7.1
# md5sum last 
2398146098365baa85e8682b36037ceb  last
# ls -l last
-rw-r--r--. 1 root root 19555 Jun 30 07:42 last

Then updated it to tftp-5.2-22.el7.x86_64, and now checksum and size are same as that were on Server side
# md5sum last 
8e0ac1058ab6cb3876ecaa727b2313fd  last
# ls -l last
-rw-r--r--. 1 root root 19568 Jun 30 07:48 last

Steps to Reproduce:
1. Install tftp-5.2-22.el7.x86_64 on server 
2. Install tftp-5.2-11.el7.x86_64 on client side
3. Now transfer the file using tftp 
$> tftp <server-ip>
tftp> get last

File gets transferred but file size and checksum does not match

Actual results:
File checksum and size changed
# md5sum last 
2398146098365baa85e8682b36037ceb  last
# ls -l last
-rw-r--r--. 1 root root 19555 Jun 30 07:42 last

Expected results:
File checksum and file size should not change at all, it should be as it. 


Additional info:

Actual size and checksum of the file on server side is :

# md5sum last
8e0ac1058ab6cb3876ecaa727b2313fd  last
# ls -l last
-rwxr-xr-x. 1 root root 19568 Jan 27  2014 last

When using tftp-5.2-22.el7.x86_64 on client instead of tftp-5.2-11.el7.x86_64, files are getting transferred as expected. Without any changes.