Discussion:
[Proftpd-user] Unexpected behavior of HiddenStore + DeleteAbortedStores
Alex Domoradov
2016-08-25 08:11:05 UTC
Permalink
Hello,

I have the following system: Ubuntu 14.04 + Proftpd-1.3.5~rc3-2.1ubuntu2.

I need to execute some specific script after a file will be uploaded. But
to catch only fully uploaded files I use HiddenStore + DeleteAbortedStores
options. And then filter file names.

My steps
1. Start upload some "big" file via FileZilla
2. Cancel the upload (in the middle of the process)

Command: STOR pycharm-community-2016.1.4.exe
Response: 150 Opening BINARY mode data connection for
pycharm-community-2016.1.4.exe
Error: File transfer aborted by user after transferring 56 229 888 bytes in
8 seconds

After that I got partially uploaded file in a ftp root dir. And I see the
following lines in the console

2016-08-24 23:48:19,235 asaap proftpd[17804] asaap
(93.76.xxx.xxx[93.76.xxx.xxx]): HiddenStore: complex path, will rename
/var/data/.in.pycharm-community-2016.1.4.exe. to
/var/data/pycharm-community-2016.1.4.exe

2016-08-24 23:48:28,128 asaap proftpd[17804] asaap
(93.76.xxx.xxx[93.76.xxx.xxx]): Transfer completed: 56229888 bytes in 8.89
seconds

So my question is - why the file in.pycharm-community-2016.1.4.exe has been
renamed to the pycharm-community-2016.1.4.exe and not deleted? Did I miss
something?

Thanks in advance.
Chris Murley
2016-08-25 12:37:38 UTC
Permalink
Looks like the server doesn't see the ABRT , assumes the transfer was success and renames.

We had a similar issue and found that the client actually was closing before aborting which let to the appearance of success

You'll probably want to packet cap that transfer to see what's being sent


Christopher Murley
Townnews.com
Post by Alex Domoradov
Hello,
I have the following system: Ubuntu 14.04 + Proftpd-1.3.5~rc3-2.1ubuntu2.
I need to execute some specific script after a file will be uploaded. But to catch only fully uploaded files I use HiddenStore + DeleteAbortedStores options. And then filter file names.
My steps
1. Start upload some "big" file via FileZilla
2. Cancel the upload (in the middle of the process)
Command: STOR pycharm-community-2016.1.4.exe
Response: 150 Opening BINARY mode data connection for pycharm-community-2016.1.4.exe
Error: File transfer aborted by user after transferring 56 229 888 bytes in 8 seconds
After that I got partially uploaded file in a ftp root dir. And I see the following lines in the console
2016-08-24 23:48:19,235 asaap proftpd[17804] asaap (93.76.xxx.xxx[93.76.xxx.xxx]): HiddenStore: complex path, will rename /var/data/.in.pycharm-community-2016.1.4.exe. to /var/data/pycharm-community-2016.1.4.exe
2016-08-24 23:48:28,128 asaap proftpd[17804] asaap (93.76.xxx.xxx[93.76.xxx.xxx]): Transfer completed: 56229888 bytes in 8.89 seconds
So my question is - why the file in.pycharm-community-2016.1.4.exe has been renamed to the pycharm-community-2016.1.4.exe and not deleted? Did I miss something?
Thanks in advance.
------------------------------------------------------------------------------
_______________________________________________
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
Loading...