技术文章 - CS430703
在 Codebeamer 中导入 Microsoft Excel 文件时出现“org.apache.poi.ooxml.POIXMLException: Zip bombdetected!”错误
已修改: 07-Nov-2024
适用于
- 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