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

Logan commented on SSHD-936:
----------------------------

I added ScpCommandFactory and {{ScpTransferEventListener}}  to sshd along with 
SftpSubsystemFactory and I noticed nothing is getting called in 
{{ScpTransferEventListener}}  when I use scp command. Is this expected? However 
all events are SftpEventListener are called for scp and sftp. Attached is the 
sample code.

[^sshd-sftp-scp.txt]

> Track SFTP put successful completion
> ------------------------------------
>
>                 Key: SSHD-936
>                 URL: https://issues.apache.org/jira/browse/SSHD-936
>             Project: MINA SSHD
>          Issue Type: Wish
>    Affects Versions: 2.1.0
>            Reporter: Logan
>            Priority: Major
>         Attachments: sshd-sftp-scp.txt
>
>
> While we can track sftp events with SftpEventListener, there is no event/hook 
> to indicate the sftp put is completed successfully. "Successfully" here means 
> file transfer was done without being terminated/aborted for various reasons 
> (user intentional termination, broken connection because of network 
> error....). I think this was tried in earlier versions through 
> [FileUploadAware|https://github.com/apache/mina-sshd/pull/11/files]. Is this 
> something possible or just a limitation of protocol?
>  
> FYI - close method of SftpEventListener is called for successfully transfers 
> as well as aborted connections.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to