[
https://issues.apache.org/jira/browse/NIFI-5625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626679#comment-16626679
]
ASF GitHub Bot commented on NIFI-5625:
--------------------------------------
Github user kemixkoo commented on a diff in the pull request:
https://github.com/apache/nifi/pull/3020#discussion_r219841379
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PostHTTP.java
---
@@ -211,25 +215,29 @@
.required(false)
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.defaultValue(VersionInfo.getUserAgent("Apache-HttpClient",
"org.apache.http.client", HttpClientBuilder.class))
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
.build();
public static final PropertyDescriptor COMPRESSION_LEVEL = new
PropertyDescriptor.Builder()
.name("Compression Level")
.description("Determines the GZIP Compression Level to use
when sending the file; the value must be in the range of 0-9. A value of 0
indicates that the file will not be GZIP'ed")
.required(true)
.addValidator(StandardValidators.createLongValidator(0, 9,
true))
.defaultValue("0")
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
.build();
public static final PropertyDescriptor ATTRIBUTES_AS_HEADERS_REGEX =
new PropertyDescriptor.Builder()
.name("Attributes to Send as HTTP Headers (Regex)")
.description("Specifies the Regular Expression that determines
the names of FlowFile attributes that should be sent as HTTP Headers")
.addValidator(StandardValidators.REGULAR_EXPRESSION_VALIDATOR)
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
--- End diff --
Oh, should be one mistake.
> Support variables for the properties of HTTP processors
> --------------------------------------------------------
>
> Key: NIFI-5625
> URL: https://issues.apache.org/jira/browse/NIFI-5625
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions, Variable Registry
> Affects Versions: 1.7.1
> Reporter: Kemix Koo
> Priority: Minor
>
> When set some group (global) variables, some properties of HTTP processors
> don't support the expressions. for example, USER and PASS, if don't set the
> global variables, must change for each processors one by one. it's so
> troublesomely.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)