mattyb149 commented on code in PR #7463:
URL: https://github.com/apache/nifi/pull/7463#discussion_r1257562937
##########
nifi-nar-bundles/nifi-poi-bundle/nifi-poi-processors/src/main/java/org/apache/nifi/processors/poi/ConvertExcelToCSVProcessor.java:
##########
@@ -199,6 +213,10 @@ public void onTrigger(final ProcessContext context, final
ProcessSession session
final int firstRow =
context.getProperty(ROWS_TO_SKIP).evaluateAttributeExpressions(flowFile).asInteger()
- 1;
final List<Integer> columnsToSkip = getColumnsToSkip(context,
flowFile);
+ // Set min inflate ratio before loading documents
+ final float minInflateRatio =
context.getProperty(MIN_INFLATE_RATIO).evaluateAttributeExpressions(flowFile).asFloat();
+ ZipSecureFile.setMinInflateRatio(minInflateRatio);
Review Comment:
That's a good point, I don't know of any way to not make it static across
classes, except maybe to have them have their own classloaders? Not sure that
would work in this case. But I believe the ExcelReader will suffer from this
too, so hopefully we can come up with something.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]