[ 
https://issues.apache.org/jira/browse/NET-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb updated NET-598:
---------------------
    Fix Version/s:     (was: 3.5)

> Check Pure-FTPd FTPES (explicit TLS)
> ------------------------------------
>
>                 Key: NET-598
>                 URL: https://issues.apache.org/jira/browse/NET-598
>             Project: Commons Net
>          Issue Type: Task
>          Components: FTP
>    Affects Versions: 3.5
>            Reporter: Stefan Matei
>
> Hi,
> With Pure-FTPd, commons-net3.5, and FTPES (explicit TLS) I get "Connection 
> closed without indication."
> I have found some old bug with similar behaviour:
> https://issues.apache.org/jira/browse/NET-354
> I have run  the CCCTester.java:
> https://issues.apache.org/jira/secure/attachment/12476247/CCCTester.java
> with some minor changes:
> ftps = new FTPSClient("TLS", false);
> ....
> ftps.enterLocalPassiveMode();     
> if (!FTPReply.isPositiveCompletion(ftps.getReplyCode()))
>     throw new FTPException(FTPException.kPassiveModeRefused);    
> .....
> int port = 21;
> This is the output:
> REPLY: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
> 220-You are user number 1 of 50 allowed.
> 220-Local time is now 02:28. Server port: 21.
> 220-This is a private system - No anonymous login
> 220-IPv6 connections are also welcome on this server.
> 220 You will be disconnected after 15 minutes of inactivity.
> COMMAND: AUTH TLS
> REPLY: 234 AUTH TLS OK.
> COMMAND: USER awrtest...@webweaving.com
> REPLY: 331 User awrtest...@webweaving.com OK. Password required
> COMMAND: PASS **********
> REPLY: 230 OK. Current restricted directory is /
> COMMAND: PBSZ 0
> REPLY: 200 PBSZ=0
> COMMAND: PROT P
> REPLY: 200 Data protection level set to "private"
> COMMAND: CCC
> REPLY: 200 Control connection unencrypted
> COMMAND: SYST
> REPLY: 215 UNIX Type: L8
> COMMAND: PASV
> REPLY: 227 Entering Passive Mode (209,188,80,204,117,54)
> COMMAND: LIST
> REPLY: 150 Accepted data connection
> org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed 
> without indication.
>       at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:316)
>       at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:292)
>       at org.apache.commons.net.ftp.FTP.getReply(FTP.java:712)
>       at 
> org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1857)
>       at 
> org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3420)
>       at 
> org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3335)
>       at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:3012)
>       at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:3065)
>       at com.caphyon.utils.CCCTester.test(CCCTester.java:47)
>       at com.caphyon.utils.CCCTester.main(CCCTester.java:106)
> Can you please check this too?
> Best Regards,
> Stefan Matei



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to