You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Sergey Vladimirov (JIRA)" <ji...@apache.org> on 2006/10/25 13:34:16 UTC

[jira] Created: (VFS-97) M$ FTP Virtual Folder support

M$ FTP Virtual Folder support
-----------------------------

                 Key: VFS-97
                 URL: http://issues.apache.org/jira/browse/VFS-97
             Project: Commons VFS
          Issue Type: New Feature
    Affects Versions: 1.1 Final
         Environment: current CVS version, 1.0-RC8
            Reporter: Sergey Vladimirov
         Attachments: patch-testcase.txt, patch.txt

FTP Object should return child by name, even if it's name of unlisted virtual directory.

IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (VFS-97) M$ FTP Virtual Folder support

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VFS-97?page=comments#action_12457613 ] 
            
Sergey Vladimirov commented on VFS-97:
--------------------------------------

Addition:
Check if possible not to disconnect. It is possible if we can restore working directory after testChangeDirectory():


    public boolean testChangeDirectory(String relPath) throws IOException {
        boolean disconnect = true;
        Boolean userDirIsRoot = FtpFileSystemConfigBuilder.getInstance()
                .getUserDirIsRoot(fileSystemOptions);
        if (getRoot().getPath() != null
                && (userDirIsRoot == null || !userDirIsRoot.booleanValue())) {
            disconnect = false;
        }

        try {
            FTPClient ftpClient = getFtpClient();
            boolean result = ftpClient.changeWorkingDirectory(relPath);

            if (!disconnect) {
                if (!ftpClient.changeWorkingDirectory(getRoot().getPath())) {
                    throw new FileSystemException(
                            "vfs.provider.ftp/change-work-directory.error",
                            getRoot().getPath());
                }
            } else {
                disconnect();
            }

            return result;
        } catch (IOException e) {
            disconnect();
            FTPClient ftpClient = getFtpClient();
            try {
                boolean result = ftpClient.changeWorkingDirectory(relPath);
                return result;
            } finally {
                disconnect();
            }
        }
    }


> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>             Fix For: 1.1 Final
>
>         Attachments: patch-testcase.txt, patch.txt, patch.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (VFS-97) M$ FTP Virtual Folder support

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VFS-97?page=all ]

Sergey Vladimirov updated VFS-97:
---------------------------------

    Attachment: patch.txt
                patch-testcase.txt

> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>    Affects Versions: 1.1 Final
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>         Attachments: patch-testcase.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (VFS-97) M$ FTP Virtual Folder support

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VFS-97?page=comments#action_12444637 ] 
            
Sergey Vladimirov commented on VFS-97:
--------------------------------------

In ideal case there is should be mount point of another fylesystem, i.e. virtual direcotry should be considered as root object of new filysystem.

But this temporary solution works for me.

> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>    Affects Versions: 1.1 Final
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>         Attachments: patch-testcase.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (VFS-97) M$ FTP Virtual Folder support

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VFS-97?page=all ]

Sergey Vladimirov updated VFS-97:
---------------------------------

    Attachment: patch.txt

New patch with merged changes from today SVN content (line numbers were changed due to changes in license header change)

> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>             Fix For: 1.1 Final
>
>         Attachments: patch-testcase.txt, patch.txt, patch.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (VFS-97) M$ FTP Virtual Folder support

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VFS-97?page=all ]

Mario Ivankovits updated VFS-97:
--------------------------------

        Fix Version/s: 1.1 Final
    Affects Version/s:     (was: 1.1 Final)

> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>             Fix For: 1.1 Final
>
>         Attachments: patch-testcase.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (VFS-97) M$ FTP Virtual Folder support

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VFS-97?page=all ]

Sergey Vladimirov updated VFS-97:
---------------------------------

    Attachment: patch.txt

Old patch has bugs with UNIX L8 ftp server - files are reported as existing, but they are not.

This patch adds "testChacgeDirectory" to FtpClient. This operation changes working directory, so it is required to destroy ftp client after this operation.

It is possible not to destroy ftpclient, if one can find the way to restore working directory. For example, if working directory is specified.

Tested on Windows NT. Will be tested on V8 lately.

> M$ FTP Virtual Folder support
> -----------------------------
>
>                 Key: VFS-97
>                 URL: http://issues.apache.org/jira/browse/VFS-97
>             Project: Commons VFS
>          Issue Type: New Feature
>         Environment: current CVS version, 1.0-RC8
>            Reporter: Sergey Vladimirov
>             Fix For: 1.1 Final
>
>         Attachments: patch-testcase.txt, patch.txt, patch.txt
>
>
> FTP Object should return child by name, even if it's name of unlisted virtual directory.
> IIS support creation FTP virtual folders. Such foldres is not listed in LS command, but can be accessed by name (CWD/LS) as well as files in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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