commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VFS-563) [sftp][tests] test sshd does not implement setstats and test does not verify it
Date Wed, 11 Feb 2015 01:23:12 GMT
Bernd Eckenfels created VFS-563:
-----------------------------------

             Summary: [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


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)

Mime
View raw message