技术文章 - CS430703

在 Codebeamer 中导入 Microsoft Excel 文件时出现“org.apache.poi.ooxml.POIXMLException: Zip bombdetected!”错误

已修改: 07-Nov-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Codebeamer 22.10 to 2.2
  • Microsoft Excel 

说明

  • 导入Microsoft Excel文件时发生以下错误
    • Failed to load the data through Excel Import Application. Please check the logs
  • 文件导入期间遇到org.apache.poi.ooxml.POIXMLException
  • 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
这是文章 430703 的 PDF 版本,可能已过期。最新版本 CS430703