You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2022/10/14 20:02:00 UTC
[jira] [Commented] (NIFI-10430) Disabling the auto decompression in ListenHTTP
[ https://issues.apache.org/jira/browse/NIFI-10430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617944#comment-17617944 ]
David Handermann commented on NIFI-10430:
-----------------------------------------
Thanks for highlighting this issue [~relaynetwork].
As you noted, one option would be to introduce a new Processor property. In light of ListenHTTP automatically decompressing requests based on either the custom or standard header, perhaps adding a property named something like {{Content Decoding Strategy}} could work. With a default value based on automatic request header parsing, the current behavior would remain is it stands. With a different value, perhaps {{Unprocessed}}, any content encoding would be ignored and passed along without any further action.
Could you elaborate on the second suggestion about a custom header? If it is possible to modify the request headers prior to requests hitting ListenHTTP, then a simple resolution would be to remove the {{Content-Encoding}} header. That would be a better option if there is a reverse proxy in front of ListenHTTP, as it would avoid the content decoding implemented in version 1.17.0.
> Disabling the auto decompression in ListenHTTP
> ----------------------------------------------
>
> Key: NIFI-10430
> URL: https://issues.apache.org/jira/browse/NIFI-10430
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.17.0
> Reporter: Dominik
> Assignee: David Handermann
> Priority: Major
>
> Due to the new feature in https://issues.apache.org/jira/browse/NIFI-10161 for ListenHTTP to automatically gzip decompress when "Content-Encoding" header is set to either "gzip" or "flowfile-gzipped", there is now an issue when we want to keep the flowfiles compressed instead of decompressing/re-compressing them.
> The idea would be to add an additional property field in Nifi processor ListenHTTP settings to disable the auto decompression for example OR to prevent it by adding a custom header like "gunzip" set to "false".
> Adding the original fix author [~exceptionfactory].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)