commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Oberhuber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-167) FTPClient.storeFile returns false in case the file is being transferred to some Windows machine
Date Wed, 12 Sep 2007 12:05:33 GMT

    [ https://issues.apache.org/jira/browse/NET-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526755
] 

Martin Oberhuber commented on NET-167:
--------------------------------------

What is the remote file name in your case?
What FTP server are you running on the Remote?
Can you send a console log of the FTP session:
    ftpClient.registerSpyStream(System.err);

We're transferring files to various Windows FTP servers without problems with Commons Net
1.4.1 in the Eclipse DSDP-TM Project, see http://www.eclipse.org/dsdp/tm/ 
So far, we have transferred files correctly but only seen issues with various servers interpreting
the Windows file system in different ways. The variants of pathes that the servers like, are
    C:\path\to\remote
    C:/path/to/remote
    /C:/path/to/remote
    /C/path/to/remote
also, some servers might be configured to not allow access outside the configured home directory,
so they might fail with absolute path names (but allow relative ones).

> FTPClient.storeFile returns false in case the file is being transferred to some Windows
machine
> -----------------------------------------------------------------------------------------------
>
>                 Key: NET-167
>                 URL: https://issues.apache.org/jira/browse/NET-167
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Operating System: Windows
>            Reporter: shashidhar gaurav misra
>            Priority: Critical
>             Fix For: 1.5
>
>
> The method works perfectly in case I am transferring the file to a Linux/Unix machine.
However if I am transferring a file to a windows machine the storeFile method returns false.
> The code snippet:
> File local = new File(localFile);
> if (local.exists()){
>           in = new FileInputStream(local);
>           if (ftpSession.storeFile(remoteFile, in)) {
>                       System.out.println("file transferred");
>              }
>              else{
>                       System.out.println("file cannot be transferred");
>              }
> }
> The remoteFile and the the local fileName are correct. Still the storeFile method is
returning false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message