Error: "Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data" Importing xlsx File Into Unifier BP Log
(Doc ID 2929178.1)
Last updated on FEBRUARY 22, 2023
Applies to:Primavera Unifier - Version 21.12 and later
Primavera Unifier Cloud Service - Version 21.12 and later
Information in this document applies to any platform.
When attempting to import an Microsoft Excel .xlsx file into a Business Process, the error below is received in Unifier UI:
Import could not be completed. There are errors in this template file. These errors can be seen in the import data template worksheet. Do you want to download the file and fix the errors? Click 'Yes" to download the file and 'No' to upload a different template file
Error in log file shows the following:
java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This may indicate that the file is used to inflate memory usage and thus could pose a security risk. You can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need to work with files which exceed this limit.
STEPS TO REPRODUCE
- Navigate to Shell > BP Log
- Download Excel Template
- Open Excel template in Excel, add desired data, and save
- In the BP Log in Unifier UI, click on Actions > Import > Data from Microsoft Excel File
- Click on Browse File button and browse to the desired xlsx file, select it, click open
- Receive the error
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document