[ 
https://issues.apache.org/jira/browse/VFS-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yurii Kartsev updated VFS-323:
------------------------------

    Environment: 
Windows 7 x64 & Linux Mint 9 Isadora(2.6.32-21-generic) x86
jdk1.6.0_18
commons-net-2.0.jar
commons-vfs-2.0-SNAPSHOT (built from revision 993538)

  was:
Windows 7 x64 & Linux Mint 9 Isadora(2.6.32-21-generic)
jdk1.6.0_18
commons-net-2.0.jar
commons-vfs-2.0-SNAPSHOT (built from revision 993538)


> The same "FileObject.exist()" call returns different values in Windows 7 and 
> Linux Ubuntu while connected to simple FTP using port 22221
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: VFS-323
>                 URL: https://issues.apache.org/jira/browse/VFS-323
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows 7 x64 & Linux Mint 9 Isadora(2.6.32-21-generic) 
> x86
> jdk1.6.0_18
> commons-net-2.0.jar
> commons-vfs-2.0-SNAPSHOT (built from revision 993538)
>            Reporter: Yurii Kartsev
>
> Good afternoon.
> Today I've found an interesting thing in VFS. I've spent 4 hours testing it 
> in different situations. It looks like a bug, but I want to ask all of you 
> first.
> My code uses VFS to connect to FTP (simple FTP, but on port 22221) and copy a 
> file from there(ftp://HOSTNAME:22221/alex/test.txt.asc.pgp). But before 
> copying I'm checking if the file exists using FileObject's method "exist()".
> The thing is that when I run my JAR from command line of Windows 7, "exist()" 
> returns true. But if only I run the same JAR from Linux Mint 9 
> Isadora(2.6.32-21-generic), this method returns false.
> I've made a test and found out that if I change port from 22221 to simple 21, 
> JAR runs fine on both systems, i.e. "exist()" returns true. This strange 
> thing in Linux happens only when I use port number 22221.
> I've tried different paths, it doesn't matter. The only thing that matter is 
> port number.
> Is it really some kind of a bug? Is there any workarounds?
> My code for checking if the file exists is:
>    FileObject dir = null;
>    String fileName =
>    
> ",AMCPROD,derivative_pricing_ssb_cds_20100910_00.xml.pgp,U,20100910A00012022189.txt";
>    // .... dir initialization
>    FileObject neededFile = dir.resolveFile(fileName);
>    return neededFile.exists();
> Thank you very much in advance. 

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

Reply via email to