My Oracle Support Banner

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.

Symptoms

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
---------------------------------------

  1. Navigate to Shell > BP Log
  2. Download Excel Template
  3. Open Excel template in Excel, add desired data, and save
  4. In the BP Log in Unifier UI, click on Actions > Import > Data from Microsoft Excel File
  5. Click on Browse File button and browse to the desired xlsx file, select it, click open
  6. Receive the error

Cause

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
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.