You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by GitBox <gi...@apache.org> on 2022/12/21 15:33:19 UTC

[GitHub] [hop] damienchambe commented on issue #2091: [Feature Request]: FTP passive mode for VFS

damienchambe commented on issue #2091:
URL: https://github.com/apache/hop/issues/2091#issuecomment-1361503903

   I've tried to manipulate the FTP vfs provider with something like :
   org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true);
   
   The only way I found is to call a pipeline with a user defined java task:
       System.out.println("Met VFS / FTP en mode connexion passive");
       org.apache.commons.vfs2.FileSystemOptions opts = new org.apache.commons.vfs2.FileSystemOptions();
       org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true);
       return parent.initImpl();
   }
   
   The code is called but it does not works.
   Apache VFS says " Currently it is not allowed to override a already configured filesystem." Could it be the cause ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org