Article - CS430703

“org.apache.poi.ooxml.POIXMLException: Zip bomb detected!” error when importing Microsoft Excel file in Codebeamer

Modified: 07-Nov-2024   


Applies To

  • Codebeamer 22.10 to 2.2
  • Microsoft Excel 

Description

  • The following error happened when importing Microsoft Excel file
    • Failed to load the data through Excel Import Application. Please check the logs
  • Encountering org.apache.poi.ooxml.POIXMLException during file import
  • In cb.txt
    • INFO  utils.command.OutputStreamCommandExecutor - error :<Exception in thread "main" java.lang.reflect.InvocationTargetException
            at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
            at java.base/java.lang.reflect.Method.invoke(Method.java:580)
            at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
            at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
            at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
            at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
      Caused by: java.lang.RuntimeException: 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: 1230385, Raw/compressed size: 12288, ratio: 0.009987
      Limits: MIN_INFLATE_RATIO: 0.010000, Entry: xl/styles.xml
This is a printer-friendly version of Article 430703 and may be out of date. For the latest version click CS430703