Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-257

UnsupportedOperationException from ScpClient.upload on Windows 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.10.0
    • None
    • Windows 7 SP1 with Java 1.7.21

    Description

      NativeSshFileNio.getAttributes uses Files.readAttributes and references unix:size which apparently doesn't exist on windows making the scp client unusable on windows.

      Exception in thread "main" java.lang.UnsupportedOperationException: View 'unix' not available
      at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:91)
      at java.nio.file.Files.readAttributes(Files.java:1902)
      at org.apache.sshd.common.file.nativefs.NativeSshFileNio.getAttributes(NativeSshFileNio.java:58)
      at org.apache.sshd.common.scp.ScpHelper.sendFile(ScpHelper.java:324)
      at org.apache.sshd.common.scp.ScpHelper.send(ScpHelper.java:305)
      at org.apache.sshd.client.scp.DefaultScpClient.upload(DefaultScpClient.java:156)
      at org.apache.sshd.client.scp.DefaultScpClient.upload(DefaultScpClient.java:115)

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              jeffhorrigan Jeff Horrigan
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: