[
https://issues.apache.org/jira/browse/NIFI-11787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-11787:
--------------------------------
Fix Version/s: 1.latest
2.latest
Status: Patch Available (was: In Progress)
> Add property to configure Min Inflate Ratio in ConvertExcelToCSVProcessor
> -------------------------------------------------------------------------
>
> Key: NIFI-11787
> URL: https://issues.apache.org/jira/browse/NIFI-11787
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Matt Burgess
> Assignee: Matt Burgess
> Priority: Major
> Fix For: 1.latest, 2.latest
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When working with Excel files that are very sparse (i.e. contain a large
> number of empty cells), an error can be thrown such as:
> java.io.IOException: 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: 16640363,
> Raw/compressed size: 166400, ratio: 0.010000 Limits: MIN_INFLATE_RATIO:
> 0.010000
> A property can be added (set to the aforementioned default) to
> ConvertExcelToCSVProcessor to specify the minimum inflation ratio, for use
> cases where the file is trusted but decompresses to a size whose ratio
> exceeds the minimum.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)