download zip file show "Zip file corrupt. Possible cause: file transfer error"

Document ID : KB000013206
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

downloaded of attachment zip file appears as corrupted

1.png

 

It followed with this error "start of central directory not found; Zip file corrupt. Possible cause: file transfer error"

 

Question:

Why the corruption is only on zip file ?

 

Environment:
ServiceDesk running on LinuxBrowser on Windows
Answer:

ServiceDesk upload zip file without compress compressed file and do not uncompress it on download.

If zip file in the repository folder are compressed manually after Service Desk uploaded it, it become filename .zip.gz

ServiceDesk still apply the rule to not uncompress zip file when it download it.
- Browser is not receiving a corrupted, file, it's a double compressed file.


1/ uncompress the zip.gz to zip on the server's repository

2/ This setting could help.
edit NX_ROOT\bopcfg\www\CATALINA_BASE\conf\web.xml
set 'forceDecompressOnDownload' to 'yes' . This will force Service Desk to Decompress the file.

Additional Information:

Example of 3 files

3.png

All files are correct, except applyptf_3.1.4.zip.gz compressed manually

The PSTools.zip was uploaded as is by Service Desk