Subject: RE: bug#32824: additional info

From: "Coleman, Patrick EX1" <[email-masked]>
Date: Mon, 24 Sep 2018 20:17:03 +0000

You rock Assaf!  Thank you very much, very helpful!

Patrick Coleman (AOI)
SUPPLIER ANALYTICS
IQVIA
400 Campus Drive
#2097
Collegeville, Pa. 19426
USA

O: +01 1.610.244.2283

[email-masked]
www.iqvia.com

Learn more about IQVIA™

-----Original Message-----
From: Assaf Gordon <[email-masked]>
Sent: Monday, September 24, 2018 4:15 PM
To: Coleman, Patrick EX1 <[email-masked]>; [email-masked]
Subject: Re: bug#32824: additional info

Hello,

On 24/09/18 01:18 PM, Coleman, Patrick EX1 wrote:
> I'm beginning to suspect the supplier that is sending in the zipped
> files is unaware what compression utility they're using and/or
> version... the only 3.0 compression utility I'm finding is WinZip.

More likely (if they are on AIX) that they are using info-zip
(https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Finfozip.sourceforge.net%2F&amp;data=02%7C01%7CPColeman%40us.imshealth.com%7Cd16ad0a36cee47176ea808d6225a5f10%7C5989ece0f90e40bf9c791a7beccdb861%7C1%7C0%7C636734168884438637&amp;sdata=P4QZzCtbi3lIOceD1WOynvbkeTTB37rtvVL3%2BHi32yQ%3D&amp;reserved=0) which is at version 3.0.

On most gnu/linux system, you should have the "file" utility installed, which can be used to detect the file type.
Examples:

=====
$ file unknown1.bin
unknown1.bin: Zip archive data, at least v2.0 to extract

$ file unknown2.bin
unknown2.bin: gzip compressed data, last modified: Mon Sep 24 13:26:32 2018, from Unix =====

> I think the file is failing to unzip due to the file not being
> completely downloaded.  Appears truncated.  Any thoughts you can
> provide though on Gzip 3.0 would be helpful, thanks.
A good way is to ask the sender to calculate the checksum of their file before uploading it.
Then you can calculate the checksum of the downloaded file.
If they are not exactly the same - you have some corruption.

On AIX, they should run:

   $ shasum archive.bin
   f572d396fae9206628714fb2ce00f72e94f2258f  archive.bin

After you download the file, check again:

   $ sha1sum archive.bin
   f572d396fae9206628714fb2ce00f72e94f2258f  archive.bin

(Note the program name is "shasum" on AIX and "sha1sum" on gnu/linux).

hope this helps,
  - assaf

________________________________________
IMPORTANT - PLEASE READ: This electronic message, including its attachments, is CONFIDENTIAL and may contain PROPRIETARY or LEGALLY PRIVILEGED or PROTECTED information and is intended for the authorized recipient of the sender. If you are not the intended recipient, you are hereby notified that any use, disclosure, copying, or distribution of this message or any of the information included in it is unauthorized and strictly prohibited. If you have received this message in error, please immediately notify the sender by reply e-mail and permanently delete this message and its attachments, along with any copies thereof, from all locations received (e.g., computer, mobile device, etc.). To the extent permitted by law, we may monitor electronic communications for the purposes of ensuring compliance with our legal and regulatory obligations and internal policies. We may also collect email traffic headers for analyzing patterns of network traffic and managing client relationships. For further information see: https://www.iqvia.com/about-us/privacy/privacy-policy. Thank you.