Build fails in specific spreadsheet with org.apache.poi.ooxml.POIXMLException after upgrading to 7.8.0

Solution In Progress - Updated -

Issue

After upgrading RHDM version to 7.8.0 or later, building of KieBase/kjar fails with an exception org.apache.poi.ooxml.POIXMLException like the following on specific spreadsheet.

org.apache.poi.ooxml.POIXMLException: 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.
Uncompressed size: 359166, Raw/compressed size: 3584, ratio: 0.009979
Limits: MIN_INFLATE_RATIO: 0.010000, Entry: xl/styles.xml

Environment

  • Red Hat Decision Manager
    • 7.8.0 and later
  • Spreadsheet (xls/xlsx)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content