Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Patrick Fäh

Re: date of the transferred file is not preserved - 2019-01-29

martin wrote:

You can try forcing WinSCP to use version 3:
https://winscp.net/eng/docs/ui_login_sftp

Great hint! It works! Thanks a lot for your help!

I informed the webmaster of the server too.
Best regards
Patrick
martin

Re: date of the transferred file is not preserved - 2019-01-29

Patrick Fäh wrote:

However, why the transfer with FileZilla works with this server?

I do not know. The server bug may manifest only in some very specific situations.
For example FileZilla uses SFTP version 3. While WinSCP is capable of SFTP up to version 6.
You can try forcing WinSCP to use version 3:
https://winscp.net/eng/docs/ui_login_sftp

Issue 2247 – Limiting SFTP version to 3 with non-well-known SFTP servers as a workaround for interoperability issues
Patrick Fäh

Re: date of the transferred file is not preserved - 2019-01-29

Thank you very much for your work!
However, why the transfer with FileZilla works with this server?
Best regards
Patrick
martin

Re: date of the transferred file is not preserved - 2019-01-29

> 2019-01-29 17:30:06.051 Type: SSH_FXP_SETSTAT, Size: 66, Number: 2057
> 2019-01-29 17:30:06.051 09,00,00,08,09,00,00,00,2C,2F,62,69,6F,63,68,65,6D,2F,68,74,74,70,64,6F,63,
> 2019-01-29 17:30:06.051 73,2F,44,61,74,65,6E,62,61,6E,6B,2F,70,68,70,2F,66,6F,6E,74,2F,70,64,66,2E,
> 2019-01-29 17:30:06.051 67,69,66,00,00,00,20,01,00,00,00,00,48,B4,3A,6B,

This is a correct request by WinSCP to set a timestamp of a file /biochem/httpdocs/Datenbank/php/font/pdf.gif to 1219770987 (‭48B43A6B‬, 2008-08-26T17:16:27+00:00).

The server confirmed the request:
< 2019-01-29 17:30:06.091 Type: SSH_FXP_STATUS, Size: 26, Number: 2057
< 2019-01-29 17:30:06.091 65,00,00,08,09,00,00,00,00,00,00,00,07,53,75,63,63,65,73,73,00,00,00,02,65,
< 2019-01-29 17:30:06.091 6E,
< 2019-01-29 17:30:06.091 Status code: 0


Please report the problem to your server vendor. Actually, what SFTP server is that? It reports as OpenSSH, but uses SFTP version 5, what OpenSSH does not support. So it must be some proprietary server.
Patrick Fäh

Re: date of the transferred file is not preserved - 2019-01-29

WinSCP 5.13.7 set to Debug 2: just transferred pdf.gif.
With FileZilla 3.40.0 the date of the transferred file is correct!
Regards
Patrick
martin

Re: date of the transferred file is not preserved

Thanks for the log. Can you set logging level to "Debug 2" and post a new log file?
Though it actually looks like a server-side problem. From the log, it looks like WinSCP correctly asked for timestamp update.
Patrick Fäh

Re: date of the transferred file is not preserved

Hello using the last version: WinSCP 5.13.7
martin

Re: date of the transferred file is not preserved

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Patrick Fäh

Re: date of the transferred file is not preserved

Additional information:
Source: PC with Windows 7 Pro
Destination: Unix Apache
Connection: VPN
Patrick Fäh

Date of the transferred file is not preserved

Dear Support Team
The Preserve timestamp checkbox makes WinSCP preserve the last modification timestamp of the transferred file. However, that is not true. When I'm using FileZilla, it works!
WinSCP Version 5.13.6, SFTP
Best regards
Patrick