JasonAlt / UberFTP

Interactive GridFTP client
Other
17 stars 14 forks source link

UberFTP deletes file after a failed overwrite #11

Open onnozweers opened 7 years ago

onnozweers commented 7 years ago

I've noticed that after an unsuccesful overwrite (to a dCache backend that does not allow overwrites), UberFTP deletes the file - and does not try to write a fresh version.

$ uberftp -debug 9 file:////home/onno/test-onno gsiftp://gridftp.grid.sara.nl:2811/pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
Debug level set at 3 (ON)
220 GSI FTP door ready
.....
227 OK (145,100,32,147,85,112)
STOR /pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
Encoded cmd: ENC FwMDAE3/hDwhz9zEHLKvYjOQ3xXkv93C4+Bt1N4KZFmMC24sRmeqwz3ArHnC2vHaVHUMF/7AVMwZDMaBdXcsrie0Jx9emi8zobjFDmQUy0Xp+w==
Encoded resp: 633 FwMDACkAAAAAAAAAC50TX5x1j+iWnBnCNkZoo2wHsiUxayldBlUSjvuARxJVnA==
550 File exists
/pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06: Error with remote service during transfer.
550 File exists
MLST /pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
Encoded cmd: ENC FwMDAE3/hDwhz9zEHWMRXtjOwYLf6KRjO0wdT0VXat5BD5lU/hZzbwBSUr4ztkdC2AEOfQEY89AZnkm3y0/o75cGX3PYuCaJdwOGoGL9z1PhNw==
Encoded resp: 633 FwMDAT0AAAAAAAAADKiT2FNw2urfbjD0Zrnfkw6c40cjheEcAgMUiJqc5c//hm3PI/Wqx878jvMYGAipYB2pXvkYdEndIiaZYlu3K4zvOJOoMDPyOhHpB3tPawTCba1Afz+DKiZ1bH8HiFTDjKlag0hyU5r4lMX0PEDXkFkqyQcsT+kUAPw0+1PLn3K69H+AOAeNDiO37592oJYw4UwbZtGEyuqDIeKC1BIexXPm8iUzC9SDkEaYJPhuznYeRUc+baNihx7SzkXl/ILPAG789gBUu/RcjfEgJdfCu6rolgZVSGv615cXZCFQPJrc1tpHslNWCIogMFHdTAZzm/TCrNwZBhU1b3KPqt3vl9Z6TLgdk893ZA1+hfbrGIJoSb4dXJA4jjZ0E1MAAeIup1OScGoxXtA7/cHCUem3GjQ+8rt7ww==
250- Listing /pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
 Perm=dr;UNIX.group=lsgrid;Modify=20170613133017;UNIX.owner=lsgrid;UNIX.gid=31883;Unique=0000C90F1929011A4B87B21F748848EF353B;Size=12;UNIX.uid=36494;Type=file;UNIX.mode=0644; /pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
250 End
DELE /pnfs/grid.sara.nl/data/lsgrid/onnotest2017-06
Encoded cmd: ENC FwMDAE3/hDwhz9zEHhepf0zuK9jolLqo+xKDcly0F/h7fJVLkJVepA0Yod0ATmqNljLbvd3Ua+jvbdr8tffEs2FBsxD20DGuqv+BXfQxPpDobg==
Encoded resp: 633 FwMDACAAAAAAAAAADfTjvoGq5uXp5P0GMT/8oHwx0VZxS3YpHw==
250 OK