You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/18 23:14:37 UTC

DO NOT REPLY [Bug 38313] New: - VFS tries to "cwd /" on a hostname.com/path ftp url instead of "cwd path"

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=38313>.
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=38313

           Summary: VFS tries to "cwd /" on a hostname.com/path ftp url
                    instead of "cwd path"
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: VFS
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jdahlgren@textwise.com


VFS version: commons-vfs-1.0-RC6.jar
Running on:  fedora core 3
JDK: 1.5

Stack Trace:

Caused by: org.apache.commons.vfs.FileSystemException: Could not change to work
directory "/".
        at
org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:103)
        ... 15 more

Example ftp url:
ftp://myname:mypassword@host.com/abc/def

This means after connecting to host.com the client should run "cwd abc" then run
"cwd def" (according to the ftp url specs).

What appears to be happening is that the VFS code is connecting to host.com and
then running "cwd /" before running "cwd abc".

The problem is that some FTP servers block "cwd /", and so VFS would fail
because it always first tries to "cwd /".

-- 
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


DO NOT REPLY [Bug 38313] - VFS tries to "cwd /" on a hostname.com/path ftp url instead of "cwd path"

Posted by bu...@apache.org.
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=38313>.
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=38313


mario@ops.co.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From mario@ops.co.at  2006-01-19 07:19 -------
If you would like to traverse the ftp share starting with the user home
directory you have to use the FtpFilesytemOptions to configure VFS to do so.

Example:

FileSystemOptions opts = new FileSystemOptions();
FtpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(opts, true);
VFS.getManager().resolveFile("my/ftp/file", opts);

Hope this Helps!
Ciao,
Mario

-- 
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