https://bz.apache.org/bugzilla/show_bug.cgi?id=63454
Bug ID: 63454
Summary: FTP still tries checking or entering directories after
a timeout
Product: Ant
Version: 1.10.6
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P2
Component: Optional Tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When an FTP listing takes too much time and ends with a timeout, it is still
trying to check its current directory or to enter the next directory. This ends
with Ant sending an ugly packet to the FTP server when it should have stopped
working in a clean way. Moreover, the Exception logged is too much generic,
when we could inform the user of the failure cause.
ANT script for testing :
<target name="listingWithSymlinks">
<ftp action="list"
listing="listingWithSymlinks.txt"
server="ftp.ietf.org"
port="21"
remotedir="/rfc/bcp"
userid="anonymous"
password="anonymous" >
<fileset dir="." defaultexcludes="no" includes="*" />
</ftp>
</target>
Exception :
BUILD FAILED/home/eadell/tests/ant-tests/project.xml:23: Unable to scan FTP
server:
..
Caused by: Error while communicating with FTP server:
..
Caused by: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection
closed without indication.
Network trace :
20:38:35.916811 IP 185.47.63.113.37166 > 4.31.198.44.21: Flags [P.], seq
4556:4576, ack 17375, win 140, options [nop,nop,TS val 2848957056 ecr
328690075], length 20
E..H..@.@..../?q...,.....7..t........h.....
......i.CWD ../rfc7227.txt
20:38:36.085424 IP 4.31.198.44.21 > 185.47.63.113.37166: Flags [P.], seq
17375:17441, ack 4576, win 227, options [nop,nop,TS val 328690117 ecr
2848957056], length 66
EH.vP%@.-.:)...,./?q....t....7......L......
..i.....421 No transfer timeout (60 seconds): closing control connection
20:38:36.086606 IP 185.47.63.113.37166 > 4.31.198.44.21: Flags [P.], seq
4576:4581, ack 17441, win 140, options [nop,nop,TS val 2848957226 ecr
328690117], length 5
E..9..@.@..../?q...,.....7..t..T...........
...*..i.PWD
20:38:36.089454 IP 4.31.198.44.21 > 185.47.63.113.37166: Flags [F.], seq 17441,
ack 4576, win 227, options [nop,nop,TS val 328690119 ecr 2848957056], length 0
EH.4P&@.-.:j...,./?q....t..T.7......f......
..i.....
20:38:36.128258 IP 185.47.63.113.37166 > 4.31.198.44.21: Flags [.], ack 17442,
win 140, options [nop,nop,TS val 2848957268 ecr 328690119], length 0
E..4..@.@.."./?q...,.....7..t..U....f......
...T..i.
20:38:36.187110 IP 185.47.63.113.37166 > 4.31.198.44.21: Flags [FP.], seq
4581:5688, ack 17442, win 140, options [nop,nop,TS val 2848957326 ecr
328690119], length 1107
E.....@.@..../?q...,.....7..t..U....(p.....
......i.PWD
PWD
PWD
PWD
PWD
PWD
...
PWD
CDUP
QUIT
--
You are receiving this mail because:
You are the assignee for the bug.