FXP_READ - WeOnlyDo Discussion board

FXP_READ (wodFTPServer)

by californiaman, Sunday, April 26, 2009, 22:16 (5450 days ago)

I use wodFTPD Server 2.4.4. I use it in VS 2005. The server is operating as an SFTP Server. The code I have questions about is more or less like this:

[code]
Private Sub objServer_DownloadFile(ByVal User As wodFTPDComLib.FtpUser, ByVal RelativePath As String, ByRef ResolvedPath As String, ByRef Action As wodFTPDComLib.FtpActions) Handles objServer.DownloadFile

If User.Login = SFTPClient Then
ResolvedPath = C:\Images\01.TIF
End If
Action = wodFTPDComLib.FtpActions.Allow
End Sub
[/code]

I have simplified my code for purposes of my question. If my understanding is correct, the above code should let the user SFTPClient download the same file (C:\Images\01.TIF) every time regardless of the file requested in RelativePath.

This code however is giving the client the following error:
Server returned invalid response to FXP_READ.

The client was written with wodSFTP.NET component. It would impractical for me to ask for an upgrade of the clients' component. At this time, I need the server to always retrun the same documentto user SFTPClient, no matter what document is requested.

Can you help me find out what could be missing?

Re: FXP_READ

by woddrazen, Monday, April 27, 2009, 00:32 (5450 days ago) @ californiaman

Hi,


I tried to duplicate your problem but it works for me using ResolvedPath in DownloadFile Event.

When I try to download some file using wodSFTP.NET it always download file specified in ResolvedPath variable in wodFtpServer DownloadFile Event.

Which version of wodFtpServer you are using? Can you maybe test with latest DEMO version from our site? If you do that please backup somewhere you old licensed version.

If there doesn't work maybe you should update also wodSFTP.NET.

Let us know ho wit goes.


Regards,
Drazen

Re: FXP_READ

by californiaman, Monday, April 27, 2009, 07:35 (5449 days ago) @ woddrazen

I am using version 2.4.4 which I just purchased on Saturday.

The client is using wodSFTP.NET version 3.0.6.38 (dated 9/7/2006)

At this point it would not be practical for us to upgrade the client. The problem is that we want to force the clients to upgrade but we want to let them know that they need to upgrade by having them download the same document every time. The document says You need to upgrade, etc, etc . If they just cannot download the a document (which is the case right now with the FXP_READ error), they may think the software is broken and discontinue their service.

Hi,


I tried to duplicate your problem but it works for me using ResolvedPath in DownloadFile Event.

When I try to download some file using wodSFTP.NET it always download file specified in ResolvedPath variable in wodFtpServer DownloadFile Event.

Which version of wodFtpServer you are using? Can you maybe test with latest DEMO version from our site? If you do that please backup somewhere you old licensed version.

If there doesn't work maybe you should update also wodSFTP.NET.

Let us know ho wit goes.


Regards,
Drazen

Re: FXP_READ

by californiaman, Monday, April 27, 2009, 07:48 (5449 days ago) @ californiaman

I wanted to mention a few additional things.

The User SFTPClient home dir is c:\images
The User SFTPClient has other virtual directories available to it. These virtual directories point to other drives: E:, F: etc
The relative paths that are being submitted point to the virtual directories.

I purchased 2.4.4 because I read that this version does not require or does not depend on the msvcrt.dll. I was using an earlier version (version 2.3.2.151)

I am using version 2.4.4 which I just purchased on Saturday.

The client is using wodSFTP.NET version 3.0.6.38 (dated 9/7/2006)

At this point it would not be practical for us to upgrade the client. The problem is that we want to force the clients to upgrade but we want to let them know that they need to upgrade by having them download the same document every time. The document says You need to upgrade, etc, etc . If they just cannot download the a document (which is the case right now with the FXP_READ error), they may think the software is broken and discontinue their service.

Hi,


I tried to duplicate your problem but it works for me using ResolvedPath in DownloadFile Event.

When I try to download some file using wodSFTP.NET it always download file specified in ResolvedPath variable in wodFtpServer DownloadFile Event.

Which version of wodFtpServer you are using? Can you maybe test with latest DEMO version from our site? If you do that please backup somewhere you old licensed version.

If there doesn't work maybe you should update also wodSFTP.NET.

Let us know ho wit goes.


Regards,
Drazen

Re: FXP_READ

by wodDamir, Monday, April 27, 2009, 09:00 (5449 days ago) @ californiaman

Hi,

As you mentioned previously, you are using a very old version (frmo 2006). I tried it once again, but cannot reproduce this behaviour with latest version of wodSFTP.Net and wodFTPServer, so this issue was most probably resolved in one of the later versions.

Can you please try out the latest version?

Regards,
Damba

Re: FXP_READ

by californiaman, Monday, April 27, 2009, 10:12 (5449 days ago) @ wodDamir


What exactly does this error mean? What could cause the client to receive this response?

Server returned invalid response to FXP_READ.

I mean I upgraded the server because I thought it would be a good idea to get rid of the dependency from msvcrt.dll

However, your suggestion is that the client needs also to be upgraded. Maybe I should not have upgraded and just made the code adjustment using the old version.

As I said, upgrading the client is not practical at this moment for us because the clients are deployed at different sites and different companies. I was hoping that you could explain what could cause the error so that I can fix the cause.

Please let me know if this is possible without upgrading the client.

Thank you for your attention to this matter.

Hi,

As you mentioned previously, you are using a very old version (frmo 2006). I tried it once again, but cannot reproduce this behaviour with latest version of wodSFTP.Net and wodFTPServer, so this issue was most probably resolved in one of the later versions.

Can you please try out the latest version?

Regards,
Damba

Re: FXP_READ

by wodDamir, Monday, April 27, 2009, 10:48 (5449 days ago) @ californiaman

Hi,

The error means that the component didn't receive the response it was expecting to receive. However, in order to see exactly what causes this I need to duplicate the same behaviour, which I'm unable.

Can you try downloading that file using any other client?

Doing so would help us isolate the problem more closely.

Regards,
Damba