[
https://issues.apache.org/jira/browse/NIFI-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075217#comment-16075217
]
ASF GitHub Bot commented on NIFI-3281:
--------------------------------------
Github user m-hogue commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1974#discussion_r125717086
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/FTPTransfer.java
---
@@ -304,6 +304,12 @@ public void flush() throws IOException {
}
@Override
+ public void flush(final FlowFile flowFile) throws IOException {
+ final FTPClient client = getClient(flowFile);
+ client.completePendingCommand();
--- End diff --
Should we handle the case where `client.completePendingCommand()` returns
false? Per the javadocs [1], it returns false if the command couldn't be
completed.
[1]
https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()
> Error on passing 'ftp.listing.user' from ListFTP to FetchSFTP
> -------------------------------------------------------------
>
> Key: NIFI-3281
> URL: https://issues.apache.org/jira/browse/NIFI-3281
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.1.1
> Reporter: Jakhongir Ashrapov
> Assignee: Pierre Villard
> Priority: Minor
>
> Cannot get `ftp.listing.user` as EL in FetchFTP when listing files with
> ListFTP. Following exception is thrown:
> IOException: Could not login for user ''
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)