PDA

View Full Version : [Fixed] APPE not working


Mouton
10-30-2003, 09:46 AM
Here's 4 resume tests, with both APPE and REST/STOR, using SSL and not SSL.

SSL/REST/STOR (works):
[09:36:20] [L] TYPE I
[09:36:20] [L] 200 Type set to I.
[09:36:22] [L] PROT P
[09:36:22] [L] 200 Protection set to: Private.
[09:36:22] [L] PASV
[09:36:22] [L] 227 Entering Passive Mode (127,0,0,1,4,4)
[09:36:22] [L] REST 34816
[09:36:22] [L] 350 Restarting at 34816. Send STORE or RETRIEVE to initiate transfer.
[09:36:22] [L] STOR file1.test
[09:36:22] [L] Connected. Negotiating SSL/TLS session..
[09:36:22] [L] SSL/TLS negotiation successful...
[09:36:22] [L] TLSv1/SSLv3 encrypted session using cipher RC4-MD5 (128 bits)
[09:36:22] [L] 150 Opening BINARY mode data connection for file1.test.

SSL/APPE (cause Connection lost):
[09:42:08] [L] TYPE I
[09:42:08] [L] 200 Type set to I.
[09:42:11] [L] PASV
[09:42:11] [L] 227 Entering Passive Mode (127,0,0,1,4,7)
[09:42:11] [L] APPE file1.test
[09:42:11] [L] Connected. Negotiating SSL/TLS session..
[09:42:11] Resumed: file1.test 127.43 MB in 12:50:08 (2.82 KBps)
[09:42:11] [L] TYPE A
[09:42:11] [L] 425 Can't build data connection: Seek offset exceeds end of file.
[09:42:11] [L] STAT -la
[09:42:11] [L] Connection lost: Localhost

Non-SSL/REST/STOR (works):
[09:43:23] [L] TYPE I
[09:43:23] [L] 200 Type set to I.
[09:43:25] [L] PASV
[09:43:25] [L] 227 Entering Passive Mode (127,0,0,1,4,8)
[09:43:25] [L] REST 34816
[09:43:25] [L] 350 Restarting at 34816. Send STORE or RETRIEVE to initiate transfer.
[09:43:25] [L] STOR file1.test
[09:43:26] [L] 150 Opening BINARY mode data connection for file1.test.

Non-SSL/APPE (fails):
[09:44:08] [L] TYPE I
[09:44:08] [L] 200 Type set to I.
[09:44:10] [L] PASV
[09:44:10] [L] 227 Entering Passive Mode (127,0,0,1,4,9)
[09:44:10] [L] APPE file1.test
[09:44:10] [L] 425 Can't build data connection: Seek offset exceeds end of file.
[09:44:10] Transfer Failed!
[09:44:10] [L] TYPE A
[09:44:10] [L] 200 Type set to A.
[09:44:10] [L] STAT -la
[09:44:10] [L] List Complete: 236 bytes in 0.10 (0.23 KBps)
[09:44:10] Transfer queue completed

Non-SSL APPE doesn't close connection, but doesn't work either.

ioFTPD 5.2.10r
FlashFXP v2.2 build 933 [BETA RELEASE]
WinSock 2.0 -- OpenSSL 0.9.7c 30 Sep 2003

darkone
10-30-2003, 12:53 PM
who uses appe anyways :) really, i'll see if i can fix this in next version

ZAiNT
10-31-2003, 07:01 PM
what exactly is appe?

ADDiCT
10-31-2003, 07:09 PM
instead of sending REST [offset] and then STOR file.name, u can directly append data to the file with APPE
(alternative way of resuming transfer)