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

Reply via email to