文档

Quick BI上传文件报错“insert data occur error java.io.IOException: Zip bomb detected!”

更新时间:
一键部署

问题描述

用户上传文件的时候,报错“insert data occur error java.io.IOException: Zip bomb detected!”。

message: ""[QE5200003] insert data occur error java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data.\nThis may indicate that the file is used to inflate memory usage and thus could pose a security risk.\nYou can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need to work with files which exceed this limit.\nCounter: 820732, cis.counter: 8192, ratio: 0.00998133373622571\nLimits: MIN_INFLATE_RATIO: 0.01""

问题原因

Zip炸弹是一个用于攻击向量的术语,其中一个小的zip文件会扩展为一个非常大的未压缩文件,因此会引起诸如耗尽内存或磁盘空间等问题。为了防止这种情况的发生,Apache POI内置了一些防护措施,并且默认情况下启用了这些防护措施。

 

解决方案

Excel有压缩,可以另存为csv重新上传解决。

适用于

  • Quick BI
  • 上传文件
  • 本页导读
文档反馈