commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39152] New: - [VFSrc7] sftp: Url parsing fails with special characters in password part
Date Thu, 30 Mar 2006 11:42:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39152>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39152

           Summary: [VFSrc7] sftp: Url parsing fails with special characters
                    in password part
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P3
         Component: VFS
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: gernot.eger@t-mobile.at


When trying to access a file from an url with for example a question mark in 
the password:

"sftp://myuser:test%3Fpwd@127.0.0.1/"

I get this stack trace:
org.apache.commons.vfs.FileSystemException: Port number is missing from 
URI "sftp://myuser:test?pwd@127.0.0.1//".
	at org.apache.commons.vfs.provider.HostFileNameParser.extractPort
(HostFileNameParser.java:228)
	at org.apache.commons.vfs.provider.HostFileNameParser.extractToPath
(HostFileNameParser.java:133)
	at org.apache.commons.vfs.provider.URLFileNameParser.parseUri
(URLFileNameParser.java:47)
	at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri
(AbstractFileProvider.java:167)
	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName
(DefaultFileSystemManager.java:628)
	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName
(DefaultFileSystemManager.java:563)
	at 
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile
(AbstractOriginatingFileProvider.java:71)
	at 
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile
(AbstractOriginatingFileProvider.java:61)
	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(DefaultFileSystemManager.java:524)
	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(DefaultFileSystemManager.java:468)
	at com.tmobile.so.collector.VFSMoverFile.<init>(VFSMoverFile.java:125)
....

I was using VFS rc7 from the subversion repository tag.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message