It was running fine in with v1.5.3127. I upgraded to the latest release v 2.0.3854 and I'm now getting an error when calling SetFileDateTime. We are running WS_FTP server v6.1.0.0 .

The error I'm now getting is:

Rebex.Net.SftpException was unhandled
  Message="Unsupported operation; SSHServerAPI.SFTP.fxp_attrs."
  Source="Rebex.Net.Sftp"
  Transferred=0
  StackTrace:
       at wWGvS.APnbEo.sxMvMZ(BBdsJfZ , Type )
       at wWGvS.APnbEo.Bindhs(String , SftpAttributes )
       at Rebex.Net.Sftp.SetFileDateTime(String remotePath, DateTime newDateTime)
       at APS.Shared.Core.Implementation.SftpService.renameUploadFile(TransferFileInfo transferFileInfo) in C:\Users\pleury\Documents\Development\AustinPS\APS_Shared\src\APS.Shared\Core\Implementation\SftpService.cs:line 142
       at APS.Shared.Core.Implementation.SftpService.uploadCallback(IAsyncResult asyncResult) in C:\Users\pleury\Documents\Development\AustinPS\APS_Shared\src\APS.Shared\Core\Implementation\SftpService.cs:line 124
       at wWGvS.cLikxD.AExGBoZ()
       at wWGvS.cLikxD.PyHMxZ.AExGBoZ()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Regards,

Paul

asked 20 Jul '10, 20:50

Paul's gravatar image

Paul
16
accept rate: 0%

edited 21 Jul '10, 09:10

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310


Version 2.0.3588.0 of Rebex SFTP introduced SFTP v4 support. In this version of the SFTP protocol, the layout of SSH_FXP_ATTRS message (a binary structure defined by the protocol) changed slightly to include creation time, more precision and other fields. It looks like the error reported by the server (*Unsupported operation; SSHServerAPI.SFTP.fxp_attrs*) refers to this.

This can either be a bug in Rebex SFTP or in WS_FTP Server - we will do more testing and let you know.

In either case, it should be possible to work around this issue by instructing Rebex SFTP to use SFTP v3. This should produce a behavior identical to older versions and SetFileDateTime should work:

C#:

sftp.Options |= SftpOptions.DisableSftp4;

VB.NET:

sftp.Options = sftp.Options Or SftpOptions.DisableSftp4

(where sftp is an istance of Sftp object)

link

answered 21 Jul '10, 09:06

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18
accept rate: 32%

Update: This was caused by a slight incompatibility of Rebex SFTP's SetFileDateTime method with WS_FTP's SFTP. It will be fixed in the next release of Rebex SFTP!

(20 Oct '10, 14:10) Lukas Pokorny ♦♦

Perhaps this will help you hunt down the issue. I tested all archives and it works until I get to version 2.0.3588.0.

Paul

link

answered 20 Jul '10, 22:20

Paul%201's gravatar image

Paul 1
16
accept rate: 0%

Thanks a lot, this might have saved us some work :-)

(21 Jul '10, 08:55) Lukas Pokorny ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×115
×3

Asked: 20 Jul '10, 20:50

Seen: 540 times

Last updated: 18 Aug '10, 09:23