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

Bernd Eckenfels commented on VFS-563:
-------------------------------------

This commit contains the commented out refresh() calls which cause trouble with 
sftp (against Apache Mina).

http://svn.apache.org/r1658868

> [sftp][tests] test sshd does not implement setstats and test does not verify 
> it
> -------------------------------------------------------------------------------
>
>                 Key: VFS-563
>                 URL: https://issues.apache.org/jira/browse/VFS-563
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Maven 3.2.5, Java 7u76, Windows 7 (x64, german)
>            Reporter: Bernd Eckenfels
>            Priority: Minor
>              Labels: test-fail
>
> While trying some test cases with external servers I noticed that 
> LastModfifiedTest is calling setLastModified and getLastModified and then 
> compares the delta. However since the default cache mode is on resolve and 
> there is no resolve or refresh in between, it only compares the stale in 
> memory representation.
> So I went on and added refresh() to the actual checks. This made the sftp 
> file system fail. After some checking I noticed, that the Apache Mina SSHD 
> (0.8) which we are using is actually not implementing it.
> org.apache.sshd.server.sftp.SftpSubsystem
> {code }
>             case SSH_FXP_SETSTAT:
>             case SSH_FXP_FSETSTAT: {
>                 // This is required for WinSCP / Cyberduck to upload properly
>                 // Blindly reply "OK"
>                 // TODO implement it
>                 sendStatus(id, SSH_FX_OK, "");
>                 break;
>             }
> {code}
> I think newer mina versions do support this function, so we need to migrate 
> the internal test server to this version before we can actually enable the 
> refresh().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to