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

downloaded of attachment zip file appears as corrupted



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



Why the corruption is only on zip file ?


ServiceDesk running on LinuxBrowser on Windows

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


All files are correct, except compressed manually

The was uploaded as is by Service Desk