mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Whitmarsh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SSHD-276) Paths incorrectly constructed by NativeSshFile.java under Windows
Date Wed, 22 Jan 2014 09:41:22 GMT
David Whitmarsh created SSHD-276:

             Summary: Paths incorrectly constructed by NativeSshFile.java under Windows
                 Key: SSHD-276
                 URL: https://issues.apache.org/jira/browse/SSHD-276
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.9.0
         Environment: Windows 7, jdk
            Reporter: David Whitmarsh

Attempting to set up an ScpClient to perform scp operations from a windows machine to Linux
sshd, local files are not found because the pathnames are incorrectly constructed. at line
494 in NativeSshFile.java, currDir started as "C:\\DEV\\trunk\\fier\\fire-uploader" (current
directory for execution), normalizedCurrdir has been set to "C:/DEV/trunk/fire/fire-uploader"
which seems reasonable, but lines 494-496 then prepend a "/", which appears to make the path
invalid on windows. Fixing this causes an IllegalArgumentException "fileName must be an absolute
path" from NativeSshFile.java

I will investigate further to see if I can find a work-around or patch.

This message was sent by Atlassian JIRA

View raw message