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 1.6.0.45
            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
(v6.1.5#6160)

Reply via email to