You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (JIRA)" <ji...@apache.org> on 2012/06/29 17:19:44 UTC

[jira] [Closed] (VFS-423) FileSystemException for invalid URI path doesn't hide the password

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

Gary D. Gregory closed VFS-423.
-------------------------------


Closing, reporter says "Not a problem."
                
> FileSystemException for invalid URI path doesn't hide the password
> ------------------------------------------------------------------
>
>                 Key: VFS-423
>                 URL: https://issues.apache.org/jira/browse/VFS-423
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Jason
>            Priority: Critical
>
> While trying to access a remote server through FTP Connection, with an invalid password, it will throw a FileSystemException for invalid URI path and show the complete URI path without the password being encrypted. 
> Code:
>   FileSystemManager fsManager = VFS.getManager();
>   rfConfig.setPassword( "ABCDEFG/ABCDEFG" );
>   FileSystemOptions opts = factory.getFileSystemOptions( rfConfig.getUrl(),   rfConfig.getUserName(), rfConfig.getPassword() );                                            
>   FileObject sourceDir = fsManager.resolveFile( completeUrl( rfConfig ), opts );
> Exception shown in Console:
> org.apache.commons.vfs2.FileSystemException: Invalid absolute URI "ftp://root:ABCDEFG/ABCDEFG@10.20.25.11/Vol1/a.txt".
> 	at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:61)
> 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693)
> 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
> Let me know if more details is needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira