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

    https://github.com/apache/nifi/pull/2018#discussion_r128100302
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/SFTPTransfer.java
 ---
    @@ -401,6 +435,18 @@ private ChannelSftp getChannel(final FlowFile 
flowFile) throws IOException {
                     
ctx.getProperty(HOSTNAME).evaluateAttributeExpressions(flowFile).getValue(),
                     
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).asInteger().intValue());
     
    +            if 
(ctx.getProperty(PROXY_HOST).evaluateAttributeExpressions(flowFile).isSet()) {
    +                final ProxyHTTP proxy = new ProxyHTTP(
    +                        
ctx.getProperty(PROXY_HOST).evaluateAttributeExpressions(flowFile).getValue(),
    +                        
ctx.getProperty(PROXY_PORT).evaluateAttributeExpressions(flowFile).asInteger()
    +                );
    +                // Check if Username is set and populate the proxy 
accordingly
    +                if 
(ctx.getProperty(PROXY_USERNAME).evaluateAttributeExpressions(flowFile).isSet())
 {
    +                    
proxy.setUserPasswd(ctx.getProperty(PROXY_USERNAME).evaluateAttributeExpressions(flowFile).getValue(),
 
ctx.getProperty(PROXY_PASSWORD).evaluateAttributeExpressions(flowFile).getValue());
    --- End diff --
    
    ````
    [WARNING] 
src/main/java/org/apache/nifi/processors/standard/util/SFTPTransfer.java[445] 
(sizes) LineLength: Line is longer than 200 characters (found 206).
    ````


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to