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 "Rico Neubauer (JIRA)" <ji...@apache.org> on 2007/10/25 13:36:50 UTC

[jira] Created: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

FTP returns 150 instead of code/message for "port is disabled"
--------------------------------------------------------------

                 Key: FTPSERVER-110
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
             Project: FtpServer
          Issue Type: Bug
          Components: Core
            Reporter: Rico Neubauer


If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:

12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.

12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
java.lang.NullPointerException
        at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
        at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
        at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
        at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
        at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
        at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
        at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
        at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
        at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.

12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.

12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.

12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.

12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FTPSERVER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537949 ] 

Niklas Gustavsson commented on FTPSERVER-110:
---------------------------------------------

In this case, is the client sending a PASV before the PORT? Would it be possible to write a client test (like those in org.apache.ftpserver.clienttests) that reproduces this bug? Thanks!

> FTP returns 150 instead of code/message for "port is disabled"
> --------------------------------------------------------------
>
>                 Key: FTPSERVER-110
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>            Reporter: Rico Neubauer
>         Attachments: apache-ftpserver-110-patch.txt
>
>
> If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
> However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
> some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.
> 12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
> java.lang.NullPointerException
>         at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
>         at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
>         at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
>         at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
>         at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
>         at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
>         at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

Posted by "Rico Neubauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FTPSERVER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rico Neubauer updated FTPSERVER-110:
------------------------------------

    Attachment: ActiveModeReplyTest.java

> FTP returns 150 instead of code/message for "port is disabled"
> --------------------------------------------------------------
>
>                 Key: FTPSERVER-110
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>            Reporter: Rico Neubauer
>         Attachments: ActiveModeReplyTest.java, apache-ftpserver-110-patch.txt
>
>
> If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
> However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
> some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.
> 12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
> java.lang.NullPointerException
>         at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
>         at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
>         at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
>         at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
>         at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
>         at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
>         at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FTPSERVER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niklas Gustavsson closed FTPSERVER-110.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0-M2
         Assignee: Niklas Gustavsson

Fixed. Thanks for the excellent patch and test case! Keep em coming!

commit -m "Fixing issue where we don't check for PASV being sent before commands using a data channel (FTPSERVER-110). Thanks to Rico Neubauer for the patch and test case." C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/APPE.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/LIST.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/MLSD.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/NLST.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/RETR.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/STOR.java C:/home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/STOU.java C:/home/niklas/workspaces/apache/ftpserver/core/src/test/org/apache/ftpserver/clienttests/ActiveModeReplyTest.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/APPE.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/LIST.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/MLSD.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/NLST.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/RETR.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/STOR.java
    Sending        home/niklas/workspaces/apache/ftpserver/core/src/java/org/apache/ftpserver/command/STOU.java
    Adding         home/niklas/workspaces/apache/ftpserver/core/src/test/org/apache/ftpserver/clienttests/ActiveModeReplyTest.java
    Transmitting file data ...
    Committed revision 589178.

> FTP returns 150 instead of code/message for "port is disabled"
> --------------------------------------------------------------
>
>                 Key: FTPSERVER-110
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>            Reporter: Rico Neubauer
>            Assignee: Niklas Gustavsson
>             Fix For: 1.0-M2
>
>         Attachments: ActiveModeReplyTest.java, apache-ftpserver-110-patch.txt
>
>
> If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
> However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
> some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.
> 12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
> java.lang.NullPointerException
>         at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
>         at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
>         at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
>         at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
>         at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
>         at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
>         at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

Posted by "Rico Neubauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FTPSERVER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rico Neubauer updated FTPSERVER-110:
------------------------------------

    Attachment: apache-ftpserver-110-patch.txt

Patch

> FTP returns 150 instead of code/message for "port is disabled"
> --------------------------------------------------------------
>
>                 Key: FTPSERVER-110
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>            Reporter: Rico Neubauer
>         Attachments: apache-ftpserver-110-patch.txt
>
>
> If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
> However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
> some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.
> 12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
> java.lang.NullPointerException
>         at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
>         at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
>         at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
>         at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
>         at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
>         at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
>         at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FTPSERVER-110) FTP returns 150 instead of code/message for "port is disabled"

Posted by "Rico Neubauer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FTPSERVER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537996 ] 

Rico Neubauer commented on FTPSERVER-110:
-----------------------------------------

No, there was no PASV sent.
I will attach a test which tests all affected commands.

> FTP returns 150 instead of code/message for "port is disabled"
> --------------------------------------------------------------
>
>                 Key: FTPSERVER-110
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-110
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>            Reporter: Rico Neubauer
>         Attachments: ActiveModeReplyTest.java, apache-ftpserver-110-patch.txt
>
>
> If using pasive mode and active mode is disabled the "PORT" command is answered with "510 port is disabled".
> However if you go on with the next command ("LIST"), then the FTPServer answers "150 ..." instead of "510 PORT command disabled before LIST") or
> some similiar descriptive error. Also the it is tried to open the active port and a 425 is sent:
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: LIST
> 12:18:41,758 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 150 File status okay; about to open data connection.
> 12:18:41,773 WARN  [IODataConnectionFactory] FtpDataConnection.getDataSocket()
> java.lang.NullPointerException
>         at org.apache.ftpserver.IODataConnectionFactory.createDataSocket(IODataConnectionFactory.java:235)
>         at org.apache.ftpserver.IODataConnectionFactory.openConnection(IODataConnectionFactory.java:197)
>         at org.apache.ftpserver.command.LIST.execute(LIST.java:78)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.service(FtpProtocolHandler.java:195)
>         at org.apache.ftpserver.listener.FtpProtocolHandler.onRequestReceived(FtpProtocolHandler.java:122)
>         at org.apache.ftpserver.listener.mina.MinaFtpProtocolHandler.messageReceived(MinaFtpProtocolHandler.java:106)
>         at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
>         at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
>         at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 150 File status okay; about to open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 425 Can't open data connection.
> 12:18:41,773 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 425 Can't open data connection.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] RECEIVED: PWD
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] WRITE: 257 "/" is current directory.
> 12:19:00,664 INFO  [MinaFtpProtocolHandler] [/10.0.103.111:56757] SENT: 257 "/" is current directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.