File Exsists

Report client bugs
Locked
malosi.fee
Posts: 1
Joined: Wed Oct 23, 2013 5:28 am

File Exsists

Post by malosi.fee »

I seem to be having a problem with the logic of CoreFTP...
I Need, to be able to upload a file, test the success of the upload by xcrc (crc32) and if successful delete the source file.
However.
When you upload, it is transfer successful > file exist (via MDTM) then it deletes the file...
[code]192.168.2.21 UNKNOWN - [23/Oct/2013:01:02:35 -0400] "USER anftpuser" 331 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:35 -0500] "PASS (hidden)" 230 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:35 -0500] "SYST" 215 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:36 -0500] "CWD /" 250 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:36 -0500] "PASV" 227 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:36 -0500] "LIST" 226 8880
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:38 -0500] "PWD" 257 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:38 -0500] "MDTM 2.txt" 213 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:40 -0500] "TYPE I" 200 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:40 -0500] "PASV" 227 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:41 -0500] "STOR 2.txt" 226 21097
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:41 -0500] "MDTM 20131023041209 2.txt" 550 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:02:42 -0500] "DELE 2.txt" 250 21097[/code]

When you check xcrc it will try to do the crc32 after the file is deleted. Instead of using the crc32 as the transfer successful / file exist rule, it is using the MDTM:
[code]192.168.2.21 UNKNOWN - [23/Oct/2013:01:04:18 -0400] "USER anftpuser" 331 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:18 -0500] "PASS (hidden)" 230 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:18 -0500] "SYST" 215 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:19 -0500] "PASV" 227 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:19 -0500] "LIST" 226 8880
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:27 -0500] "TYPE I" 200 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:27 -0500] "PASV" 227 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:27 -0500] "RETR 2.txt" 226 21097
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:27 -0500] "MDTM 2.txt" 213 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "DELE 2.txt" 250 21097
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "XCRC "2.txt"" 550 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "TYPE I" 200 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "PASV" 227 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "REST 21097" 350 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "RETR 2.txt" 550 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "TYPE I" 200 -
192.168.2.21 UNKNOWN anftpuser [23/Oct/2013:00:04:28 -0500] "PASV" 227 -
[/code]

Am I nuking this problem; or is there another way to go about it with the same result?
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Looks like the DELE is being called before the XCRC. This is a bug and will be fixed in build 1791 and greater.
Locked