You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2018/11/01 05:40:00 UTC

[jira] [Created] (NIFI-5776) ListSFTP should log SSH_FXP_STATUS id value

Koji Kawamura created NIFI-5776:
-----------------------------------

             Summary: ListSFTP should log SSH_FXP_STATUS id value
                 Key: NIFI-5776
                 URL: https://issues.apache.org/jira/browse/NIFI-5776
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.0.0
            Reporter: Koji Kawamura
            Assignee: Koji Kawamura


When SSH_FXP_READDIR request is sent, if SSH_FXP_STATUS other than the expected SSH_FX_EOF is returned, SftpException is thrown. Current catch block converts the exception into different exceptions based on SSH_FXP_STATUS id. But if the id is not SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED, the returned id won't be logged. That makes it hard to investigate issues for such code.
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/SFTPTransfer.java#L263



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)