[ 
https://issues.apache.org/jira/browse/NIFI-5625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16625278#comment-16625278
 ] 

ASF GitHub Bot commented on NIFI-5625:
--------------------------------------

Github user alopresto commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3020#discussion_r219714049
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PostHTTP.java
 ---
    @@ -474,8 +484,8 @@ public void process(final HttpResponse response, final 
HttpContext httpContext)
             clientBuilder.setRetryHandler(retryHandler);
             clientBuilder.disableContentCompression();
     
    -        final String username = context.getProperty(USERNAME).getValue();
    -        final String password = context.getProperty(PASSWORD).getValue();
    +        final String username = 
context.getProperty(USERNAME).evaluateAttributeExpressions().getValue();
    +        final String password = 
context.getProperty(PASSWORD).evaluateAttributeExpressions().getValue();
    --- End diff --
    
    See comment about `password` above. 


> 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)

Reply via email to