exceptionfactory commented on code in PR #6445:
URL: https://github.com/apache/nifi/pull/6445#discussion_r979130928


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/SFTPTransfer.java:
##########
@@ -580,12 +587,23 @@ private String getMessage(final SFTPException e) {
     }
 
     protected SFTPClient getSFTPClient(final FlowFile flowFile) throws 
IOException {
+        final String evaledHostname = 
ctx.getProperty(HOSTNAME).evaluateAttributeExpressions(flowFile).getValue();
+        final String evaledPort = 
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).getValue();
+        final String evaledUsername = 
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).getValue();
+        final String evaledPassword = 
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).getValue();
+        final String evaledPrivateKeyPath = 
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).getValue();
+        final String evaledPrivateKeyPassphrase = 
ctx.getProperty(PORT).evaluateAttributeExpressions(flowFile).getValue();

Review Comment:
   It looks like the property descriptor `PORT` reference needs to be replaced 
with the appropriate property descriptor for the username, password, and 
private key values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to