You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jeff Ma <je...@loni.ucla.edu> on 2005/10/06 19:21:17 UTC

RE: [vfs] VFS SFTP


I have a problem with the SFTP, the following code will throw an
exception

  FileObject file
=fsManager.resolveFile("sftp://user:passwd@host/MyHome",opts);

 file.getChildren();  //this line throw exception

I run this program at NT, and the server is a SGI.
I used the latest night build, commons-vfs-src-20051006.zip
FTP is fine with the same machine and directory.


org.apache.commons.vfs.FileSystemException: Invalid descendent file name
"./".
	at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName(Default
FileSystemManager.java:616)
	at
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractF
ileObject.java:571)
	at
org.apache.commons.vfs.example.MyExample.main(MyExample.java:106) 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [vfs] VFS SFTP

Posted by Berlin Brown <be...@gmail.com>.
http://j-ftp.sourceforge.net/

Has always worked for me.  And, my ISP is normally pretty strict and
secure, but that one has worked for me.

I use http://www.textdrive.com by the way.

On 10/7/05, Mario Ivankovits <ma...@ops.co.at> wrote:
> Berlin Brown wrote:
> >Thanks, I have used the other SFTP opensource java project and it has
> >worked fine on my server.
> >
> Which one was it?
> Maybe we can provide an alternative sftp file provider using this library.
>
>
> ---
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [vfs] VFS SFTP

Posted by Mario Ivankovits <ma...@ops.co.at>.
Berlin Brown wrote:
>Thanks, I have used the other SFTP opensource java project and it has
>worked fine on my server.
>  
Which one was it?
Maybe we can provide an alternative sftp file provider using this library.


---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [vfs] VFS SFTP

Posted by Berlin Brown <be...@gmail.com>.
Thanks, I have used the other SFTP opensource java project and it has
worked fine on my server.  I know some servers aren't totally
compliant and/or java friendly.

On 10/7/05, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi Jeff!
> >org.apache.commons.vfs.FileSystemException: Invalid descendent file name
> >"./".
> >
> Looks like your ssh server transfers the "." (and maybe "..") as "./".
> I added those patterns to the ignore list.
> Please try the next nightly.
>
>
> Thanks for reporting.
>
> ---
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [vfs] VFS SFTP

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi Jeff!
>org.apache.commons.vfs.FileSystemException: Invalid descendent file name
>"./".
>  
Looks like your ssh server transfers the "." (and maybe "..") as "./".
I added those patterns to the ignore list.
Please try the next nightly.


Thanks for reporting.

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org