Github user gresockj commented on a diff in the pull request: https://github.com/apache/nifi/pull/905#discussion_r75700388 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java --- @@ -182,15 +182,18 @@ public void onStopped() { public void onScheduled(ProcessContext context) throws ProcessException { if (fileFilter == null) { fileFilter = Pattern.compile(context.getProperty(FILE_FILTER).getValue()); - tarUnpacker = new TarUnpacker(fileFilter); - zipUnpacker = new ZipUnpacker(fileFilter); - flowFileStreamV3Unpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV3()); - flowFileStreamV2Unpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV2()); - flowFileTarUnpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV1()); } + } + + private void initPackagers(ProcessContext context) { + tarUnpacker = new TarUnpacker(fileFilter); + zipUnpacker = new ZipUnpacker(fileFilter); + flowFileStreamV3Unpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV3()); + flowFileStreamV2Unpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV2()); + flowFileTarUnpacker = new FlowFileStreamUnpacker(new FlowFileUnpackagerV1()); --- End diff -- I like it -- I'll start working on it.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---