Topic "Noooooooooooooo!!!!!!!!!!!!!!!!"

Author Message
Stefan6

Guest


Seems like I just lost about 150 important mails. I copied them from the server, then deleted them from the server. When I tried to open them, it turned out that the files were all empty (0 bytes).

The file format was typical mail format, like:
1336353331.M511406P22629.server1.mymail.org,S=3096,W=3175:2,ad
1338131864.H554013P14219.server.mymail.com,S=2907:2,STcd

After copying, the file names are all truncated, like this:
1336353331.M511406P22629.server1.mymail.org,S=3096,W=3175
1338131864.H554013P14219.server.mymail.com,S=2907

So it seems like WinSCP got cofused with those file names, but there was no error message whatsoever. ;(
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Sorry for that. What protocol are you using? Are you able to reproduce the problem with truncating file names? Can you post a session log file showing that?
Stefan6

Guest


Hi Martin,

The protocol is SFTP. Find the log below - hope this helps!

. 2012-06-06 18:56:23.833 Session upkeep
. 2012-06-06 18:56:24.349 Session upkeep
. 2012-06-06 18:56:24.850 Session upkeep
. 2012-06-06 18:56:25.189 File: "/home/xxx/mail/xxx.com/xxx/.spam/cur/1338397343.H963419P27875.server.xxx.com,S=22838:2,S"
. 2012-06-06 18:56:25.190 Copying "/home/xxx/mail/xxx.com/xxx/.spam/cur/1338397343.H963419P27875.server.xxx.com,S=22838:2,S" to local directory started.
. 2012-06-06 18:56:25.191 Binary transfer mode selected.
. 2012-06-06 18:56:25.217 Opening remote file.
> 2012-06-06 18:56:25.217 Type: SSH_FXP_OPEN, Size: 131, Number: 14339
. 2012-06-06 18:56:25.218 Sent 135 bytes
. 2012-06-06 18:56:25.218 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.218 Read 4 bytes (24 pending)
. 2012-06-06 18:56:25.218 Read 24 bytes (0 pending)
< 2012-06-06 18:56:25.218 Type: SSH_FXP_STATUS, Size: 24, Number: 14084
. 2012-06-06 18:56:25.218 Discarding reserved response
. 2012-06-06 18:56:25.218 Waiting for another 4 bytes
. 2012-06-06 18:56:25.331 Detected network event
. 2012-06-06 18:56:25.332 Received 17 bytes (0)
. 2012-06-06 18:56:25.332 Read 4 bytes (13 pending)
. 2012-06-06 18:56:25.332 Read 13 bytes (0 pending)
< 2012-06-06 18:56:25.332 Type: SSH_FXP_HANDLE, Size: 13, Number: 14339
> 2012-06-06 18:56:25.332 Type: SSH_FXP_FSTAT, Size: 9, Number: 14600
. 2012-06-06 18:56:25.332 Sent 13 bytes
. 2012-06-06 18:56:25.332 There are 0 bytes remaining in the send buffer
> 2012-06-06 18:56:25.332 Type: SSH_FXP_READ, Size: 25, Number: 14853
. 2012-06-06 18:56:25.332 Sent 29 bytes
. 2012-06-06 18:56:25.332 There are 0 bytes remaining in the send buffer
> 2012-06-06 18:56:25.332 Type: SSH_FXP_READ, Size: 25, Number: 15109
. 2012-06-06 18:56:25.332 Sent 29 bytes
. 2012-06-06 18:56:25.332 There are 0 bytes remaining in the send buffer
> 2012-06-06 18:56:25.332 Type: SSH_FXP_READ, Size: 25, Number: 15365
. 2012-06-06 18:56:25.332 Sent 29 bytes
. 2012-06-06 18:56:25.333 There are 0 bytes remaining in the send buffer
> 2012-06-06 18:56:25.333 Type: SSH_FXP_READ, Size: 25, Number: 15621
. 2012-06-06 18:56:25.333 Sent 29 bytes
. 2012-06-06 18:56:25.333 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.333 Waiting for another 4 bytes
. 2012-06-06 18:56:25.446 Detected network event
. 2012-06-06 18:56:25.446 Received 28 bytes (0)
. 2012-06-06 18:56:25.446 Read 4 bytes (24 pending)
. 2012-06-06 18:56:25.446 Read 24 bytes (0 pending)
< 2012-06-06 18:56:25.446 Type: SSH_FXP_STATUS, Size: 24, Number: 14600
. 2012-06-06 18:56:25.446 Storing reserved response
. 2012-06-06 18:56:25.446 Waiting for another 4 bytes
. 2012-06-06 18:56:25.570 Detected network event
. 2012-06-06 18:56:25.570 Waiting for another 4 bytes
. 2012-06-06 18:56:25.571 Detected network event
. 2012-06-06 18:56:25.571 Waiting for another 4 bytes
. 2012-06-06 18:56:25.686 Detected network event
. 2012-06-06 18:56:25.686 Waiting for another 4 bytes
. 2012-06-06 18:56:25.686 Detected network event
. 2012-06-06 18:56:25.686 Waiting for another 4 bytes
. 2012-06-06 18:56:25.687 Detected network event
. 2012-06-06 18:56:25.687 Waiting for another 4 bytes
. 2012-06-06 18:56:25.802 Detected network event
. 2012-06-06 18:56:25.802 Waiting for another 4 bytes
. 2012-06-06 18:56:25.802 Detected network event
. 2012-06-06 18:56:25.802 Waiting for another 4 bytes
. 2012-06-06 18:56:25.808 Detected network event
. 2012-06-06 18:56:25.811 Received 16384 bytes (0)
. 2012-06-06 18:56:25.811 Received 52 bytes (0)
. 2012-06-06 18:56:25.811 Read 4 bytes (16432 pending)
. 2012-06-06 18:56:25.811 Read 4105 bytes (12327 pending)
< 2012-06-06 18:56:25.812 Type: SSH_FXP_DATA, Size: 4105, Number: 14853
> 2012-06-06 18:56:25.812 Type: SSH_FXP_READ, Size: 25, Number: 15877
. 2012-06-06 18:56:25.812 Sent 29 bytes
. 2012-06-06 18:56:25.812 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.814 Session upkeep
. 2012-06-06 18:56:25.817 Read 4 bytes (12323 pending)
. 2012-06-06 18:56:25.817 Read 4105 bytes (8218 pending)
< 2012-06-06 18:56:25.817 Type: SSH_FXP_DATA, Size: 4105, Number: 15109
> 2012-06-06 18:56:25.817 Type: SSH_FXP_READ, Size: 25, Number: 16133
. 2012-06-06 18:56:25.817 Sent 29 bytes
. 2012-06-06 18:56:25.817 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.817 Read 4 bytes (8214 pending)
. 2012-06-06 18:56:25.817 Read 4105 bytes (4109 pending)
< 2012-06-06 18:56:25.817 Type: SSH_FXP_DATA, Size: 4105, Number: 15365
> 2012-06-06 18:56:25.818 Type: SSH_FXP_READ, Size: 25, Number: 16389
. 2012-06-06 18:56:25.818 Sent 29 bytes
. 2012-06-06 18:56:25.818 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.818 Read 4 bytes (4105 pending)
. 2012-06-06 18:56:25.818 Read 4105 bytes (0 pending)
< 2012-06-06 18:56:25.818 Type: SSH_FXP_DATA, Size: 4105, Number: 15621
> 2012-06-06 18:56:25.818 Type: SSH_FXP_READ, Size: 25, Number: 16645
. 2012-06-06 18:56:25.818 Sent 29 bytes
. 2012-06-06 18:56:25.818 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.819 Waiting for another 4 bytes
. 2012-06-06 18:56:25.945 Detected network event
. 2012-06-06 18:56:25.946 Waiting for another 4 bytes
. 2012-06-06 18:56:25.946 Detected network event
. 2012-06-06 18:56:25.947 Received 4109 bytes (0)
. 2012-06-06 18:56:25.947 Read 4 bytes (4105 pending)
. 2012-06-06 18:56:25.947 Read 4105 bytes (0 pending)
< 2012-06-06 18:56:25.947 Type: SSH_FXP_DATA, Size: 4105, Number: 15877
> 2012-06-06 18:56:25.947 Type: SSH_FXP_READ, Size: 25, Number: 16901
. 2012-06-06 18:56:25.947 Sent 29 bytes
. 2012-06-06 18:56:25.947 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:25.948 Waiting for another 4 bytes
. 2012-06-06 18:56:26.062 Detected network event
. 2012-06-06 18:56:26.063 Received 2435 bytes (0)
. 2012-06-06 18:56:26.063 Read 4 bytes (2431 pending)
. 2012-06-06 18:56:26.063 Read 2367 bytes (64 pending)
< 2012-06-06 18:56:26.063 Type: SSH_FXP_DATA, Size: 2367, Number: 16133
> 2012-06-06 18:56:26.063 Type: SSH_FXP_READ, Size: 25, Number: 17157
. 2012-06-06 18:56:26.063 Sent 29 bytes
. 2012-06-06 18:56:26.063 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:26.064 Session upkeep
. 2012-06-06 18:56:26.065 Read 4 bytes (60 pending)
. 2012-06-06 18:56:26.065 Read 28 bytes (32 pending)
< 2012-06-06 18:56:26.065 Type: SSH_FXP_STATUS, Size: 28, Number: 16389
< 2012-06-06 18:56:26.065 Status code: 1
> 2012-06-06 18:56:26.066 Type: SSH_FXP_CLOSE, Size: 13, Number: 17412
. 2012-06-06 18:56:26.066 Sent 17 bytes
. 2012-06-06 18:56:26.066 There are 0 bytes remaining in the send buffer
. 2012-06-06 18:56:26.066 Read 4 bytes (28 pending)
. 2012-06-06 18:56:26.066 Read 28 bytes (0 pending)
< 2012-06-06 18:56:26.066 Type: SSH_FXP_STATUS, Size: 28, Number: 16645
. 2012-06-06 18:56:26.066 Waiting for another 4 bytes
. 2012-06-06 18:56:26.175 Detected network event
. 2012-06-06 18:56:26.176 Received 32 bytes (0)
. 2012-06-06 18:56:26.176 Read 4 bytes (28 pending)
. 2012-06-06 18:56:26.176 Read 28 bytes (0 pending)
< 2012-06-06 18:56:26.176 Type: SSH_FXP_STATUS, Size: 28, Number: 16901
. 2012-06-06 18:56:26.176 Waiting for another 4 bytes
. 2012-06-06 18:56:26.292 Detected network event
. 2012-06-06 18:56:26.293 Received 60 bytes (0)
. 2012-06-06 18:56:26.293 Read 4 bytes (56 pending)
. 2012-06-06 18:56:26.293 Read 28 bytes (28 pending)
< 2012-06-06 18:56:26.293 Type: SSH_FXP_STATUS, Size: 28, Number: 17157
. 2012-06-06 18:56:26.377 Session upkeep
. 2012-06-06 18:56:26.877 Session upkeep
. 2012-06-06 18:56:27.391 Session upkeep
. 2012-06-06 18:56:27.890 Session upkeep


The result is a 0-byte file with the name of:
1338397343.H963419P27875.server.xxx.com,S=22838
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
First, Windows does not allow colon in file name.
Anyway, WinSCP should translate the colon, not trim everything afterwards.
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP (or rather Windows) would behave this way, if you had disabled replacing of special characters on download (it's enabled by default):
http://winscp.net/eng/docs/ui_transfer_custom
Stefan6

Guest


Well, it doesn't really matter to me if WinSCP translates the colon or not - the only problem is that the file ends up empty. It seems like there is some inconsistency - one part of WinSCP trims the name, whereas the part that copies the file contents doesn't know the new name?

Yes, replacing of special characters is disabled in my preferences. I did that half a year ago, because enabling it also caused issues - but it believe those were fixed in 5.0.5 - so now I enabled it again. Thanks for the heads up!

I'm afraid there is no email in your profile. Wink
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Stefan6 wrote:
I'm afraid there is no email in your profile. Wink

You have to login to see it, as mentioned above.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License