You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Eisen Wang (JIRA)" <ji...@apache.org> on 2008/11/07 09:02:47 UTC

[jira] Created: (NET-241) FTPClient Can't be configured with SYST_NT

FTPClient Can't be configured with SYST_NT
------------------------------------------

                 Key: NET-241
                 URL: https://issues.apache.org/jira/browse/NET-241
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Windows, jdk 1.5 or jdk1.6
            Reporter: Eisen Wang


while coding as below:
FTPClient ftp = new FTPClient();
int reply;

ftp.connect("10.110.13.18",2001);

ftp.login("user","password");
//  ... // transfer files
ftp.type(FTPClient.ASCII_FILE_TYPE);

FTPFile[] temp = ftp.listFiles();
System.out.println(temp.length);
for (int i = 0; i < temp.length; i++)
{
	System.out.println(temp[i].getName());
}; //filtered all the files

it would report there's 3 files on the ftp server and there name,But if coding as below:

FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT);
FTPClient ftp = new FTPClient();
int reply;

ftp.configure(conf);
ftp.connect("10.110.13.18",2001);

ftp.login("user","password");
//  ... // transfer files
ftp.type(FTPClient.ASCII_FILE_TYPE);

FTPFile[] temp = ftp.listFiles();
System.out.println(temp.length);
for (int i = 0; i < temp.length; i++)
{
	System.out.println(temp[i].getName());
}; //filtered all the files

it would report there's 0 file on the ftp server and raise no error.

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


[jira] Closed: (NET-241) FTPClient Can't be configured with SYST_NT

Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rory Winston closed NET-241.
----------------------------

    Resolution: Incomplete

> FTPClient Can't be configured with SYST_NT
> ------------------------------------------
>
>                 Key: NET-241
>                 URL: https://issues.apache.org/jira/browse/NET-241
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows, jdk 1.5 or jdk1.6
>            Reporter: Eisen Wang
>
> while coding as below:
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 3 files on the ftp server and there name,But if coding as below:
> FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT);
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.configure(conf);
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 0 file on the ftp server and raise no error.

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


[jira] Commented: (NET-241) FTPClient Can't be configured with SYST_NT

Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670588#action_12670588 ] 

Rory Winston commented on NET-241:
----------------------------------

I presume its an NT system you are using? I dont think there is enough information here to help with diagnosing a potential issue....the Unix parser is used on Windows platforms too.

> FTPClient Can't be configured with SYST_NT
> ------------------------------------------
>
>                 Key: NET-241
>                 URL: https://issues.apache.org/jira/browse/NET-241
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows, jdk 1.5 or jdk1.6
>            Reporter: Eisen Wang
>
> while coding as below:
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 3 files on the ftp server and there name,But if coding as below:
> FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT);
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.configure(conf);
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 0 file on the ftp server and raise no error.

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


[jira] Commented: (NET-241) FTPClient Can't be configured with SYST_NT

Posted by "Eisen Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670591#action_12670591 ] 

Eisen Wang commented on NET-241:
--------------------------------

Thanks for reply. Yes. I'm using NT(pls note the enironment I wrote was Windows).

Best Regards
Eisen 
www.e-future.com.cn
E-Future Information Tech Inc. (NQSDAQ:EFUT)
Tel:021-52989278/52989378-136
Fax:021-52989276
Addr:19E,Sun Tong Information Plaza,55 West Huaihai Road ,Shanghai
Zip:200030
EMail:wangj@e-future.com.cn


> FTPClient Can't be configured with SYST_NT
> ------------------------------------------
>
>                 Key: NET-241
>                 URL: https://issues.apache.org/jira/browse/NET-241
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows, jdk 1.5 or jdk1.6
>            Reporter: Eisen Wang
>
> while coding as below:
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 3 files on the ftp server and there name,But if coding as below:
> FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT);
> FTPClient ftp = new FTPClient();
> int reply;
> ftp.configure(conf);
> ftp.connect("10.110.13.18",2001);
> ftp.login("user","password");
> //  ... // transfer files
> ftp.type(FTPClient.ASCII_FILE_TYPE);
> FTPFile[] temp = ftp.listFiles();
> System.out.println(temp.length);
> for (int i = 0; i < temp.length; i++)
> {
> 	System.out.println(temp[i].getName());
> }; //filtered all the files
> it would report there's 0 file on the ftp server and raise no error.

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