You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by "Niklas Gustavsson (JIRA)" <ji...@apache.org> on 2006/11/30 15:01:23 UTC

[jira] Closed: (FTPSERVER-50) ftps.execPROT("P") hangs server

     [ http://issues.apache.org/jira/browse/FTPSERVER-50?page=all ]

Niklas Gustavsson closed FTPSERVER-50.
--------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Niklas Gustavsson

This was fixed in commons-net due to a bug in their PROT P code. Feel free to reopen if your code still won't work.

> ftps.execPROT("P") hangs server
> -------------------------------
>
>                 Key: FTPSERVER-50
>                 URL: http://issues.apache.org/jira/browse/FTPSERVER-50
>             Project: FtpServer
>          Issue Type: Bug
>         Environment: Intel Mac, java version 1.5.0_05
>            Reporter: susanne
>         Assigned To: Niklas Gustavsson
>
> Susanne Lefvert wrote:
> With the help from Rory, I got the FTPSClient to work with the apache ftp server, thanks! I only ran into one issue:
> I'd like to also secure the data channel, so I used
> ftps.login(user, password)
> ftps.execPROT("P");
> It works fine the first time I upload a file to the server, however, the server hangs so that any other uploads I try after that fails and I have to restart the server. If I remove the execPROT("P") command, this issue does not occur.
> Any ideas???
> Is Apache Ftp Server in this case the Java one in the Incubator (http://incubator.apache.org/ftpserver/)? If so, feel free enter a bug in our Jira and we'll be happy to have a look at it.
> https://issues.apache.org/jira/browse/FTPSERVER
> /niklas
> Here's the config file for the server...I only removed the database AC code and my ip address
> ## Properties file based configuration
> ##-----------------------------------------------------------------------------
> ## This is the default server socket factory configuration. If you want to
> ## support explicit SSL connection, please specify ssl block
> ##-----------------------------------------------------------------------------
> #config.socket-factory.class=org.apache.ftpserver.socketfactory.FtpSocketFactory
> #config.socket-factory.address=<snip>
> #config.socket-factory.port=2983
> #config.socket-factory.ssl.keystore-file=./res/.keystore
> #config.socket-factory.ssl.keystore-password=password
> #config.socket-factory.ssl.keystore-type=JKS
> #config.socket-factory.ssl.keystore-algorithm=SunX509
> #config.socket-factory.ssl.ssl-protocol=TLS
> #config.socket-factory.ssl.client-authentication=false
> #config.socket-factory.ssl.key-password=password
> ##-----------------------------------------------------------------------------
> ## This is the secure server socket factory configuration.
> ##-----------------------------------------------------------------------------
> config.socket-factory.class=org.apache.ftpserver.socketfactory.SSLFtpSocketFactory
> config.socket-factory.address=<snip>
> config.socket-factory.port=2983
> config.socket-factory.ssl.keystore-file=./res/.keystore
> config.socket-factory.ssl.keystore-password=password
> config.socket-factory.ssl.keystore-type=JKS
> config.socket-factory.ssl.keystore-algorithm=SunX509
> config.socket-factory.ssl.ssl-protocol=TLS
> config.socket-factory.ssl.client-authentication=false
> config.socket-factory.ssl.key-password=password
> ##------------------------------------------------------------------------------
> ## Data connection configuration
> ## If you want to use encrypted data connection, please use ssl block.
> ##------------------------------------------------------------------------------
> config.data-connection.idle-time=10
> config.data-connection.active.enable=true
> config.data-connection.active.local-address=<snip>
> config.data-connection.active.local-port=2923
> config.data-connection.active.ip-check=false
> config.data-connection.passive.address=<snip>
> config.data-connection.passive.ports=2923
> config.data-connection.ssl.keystore-file=./res/.keystore
> config.data-connection.ssl.keystore-password=password
> config.data-connection.ssl.keystore-type=JKS
> config.data-connection.ssl.keystore-algorithm=SunX509
> config.data-connection.ssl.ssl-protocol=TLS
> config.data-connection.ssl.client-authentication=false
> config.data-connection.ssl.key-password=password
> ##-----------------------------------------------------------------------------
> ## Standard users admin and anonymous will be created by default.
> ##-----------------------------------------------------------------------------
> config.create-default-user=false
> ##-----------------------------------------------------------------------------
> ## Ftp message configuration block
> ##-----------------------------------------------------------------------------
> #config.message.class=org.apache.ftpserver.message.MessageResourceImpl
> #config.message.custom-message-dir=./res
> #config.message.languages=en,zh-tw
> ##-----------------------------------------------------------------------------
> ## Connection manager configuration
> ##-----------------------------------------------------------------------------
> #config.connection-manager.max-connection=20
> #config.connection-manager.max-login=10
> #config.connection-manager.anonymous-login-enabled=true
> #config.connection-manager.max-anonymous-login=10
> #config.connection-manager.default-idle-time=60
> #config.connection-manager.timeout-poll-inverval=60
> ##-----------------------------------------------------------------------------
> ## Command factory configuration
> ##-----------------------------------------------------------------------------
> #config.command-factory.command.command-name=fully-qualified-command-class-name
> ##-----------------------------------------------------------------------------
> ## This is the IP restrictor configuration
> ##-----------------------------------------------------------------------------
> #config.ip-restrictor.class=org.apache.ftpserver.iprestrictor.FileIpRestrictor
> #config.ip-restrictor.file=./res/ip.gen
> ##-----------------------------------------------------------------------------
> ## Properties based default user manager configuration.
> ##-----------------------------------------------------------------------------
> #config.user-manager.class=org.apache.ftpserver.usermanager.PropertiesUserManager
> #config.user-manager.admin=admin
> #config.user-manager.prop-file=./res/user.gen
> #config.user-manager.prop-password-encrypt=true
> ##-----------------------------------------------------------------------------
> ## Database based user manager configuration
> ##-----------------------------------------------------------------------------
> #<snip>
> ##-----------------------------------------------------------------------------
> ## LDAP based user manager configuration
> ##-----------------------------------------------------------------------------
> #config.user-manager.class=org.apache.ftpserver.usermanager.LdapUserManager
> #config.user-manager.admin=admin
> #config.user-manager.ldap-url=ldap\://localhost\:389
> #config.user-manager.ldap-admin-dn=cn=Manager,dc=apache,dc=org
> #config.user-manager.ldap-admin-password=secret
> #config.user-manager.ldap-authentication=simple
> #config.user-manager.ldap-user-base-dn=dc\=apache,dc\=org
> ##-----------------------------------------------------------------------------
> ## File system manager configuration.
> ##-----------------------------------------------------------------------------
> #config.file-system-manager.class=org.apache.ftpserver.filesystem.NativeFileSystemManager
> #config.file-system-manager.create-home=false
> ##------------------------------------------------------------------------------
> ## All ftplets
> ##------------------------------------------------------------------------------
> config.ftplets=processUpload,processLogin
> ##------------------------------------------------------------------------------
> ## Ftplet f1 configuration
> ##------------------------------------------------------------------------------
> config.ftplet.processUpload.class=ProcessUpload
> config.ftplet.processUpload.importer=../import/Import-Cmd.py
> ##------------------------------------------------------------------------------
> ## Ftplet f2 configuration
> ##------------------------------------------------------------------------------
> config.ftplet.processLogin.class=ProcessLogin

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