EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Does the simple FTPS client support STOU

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#21725
Posted: 09/26/2012 02:27:57
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

Hi,

Does the simple FTPS client support the STOU (store unique) command?
I cannot find any information about this in your documentation.

Best regards,

Niklas Kjellander
#21726
Posted: 09/26/2012 02:40:35
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Yes, it supports STOU command. Call Send() method with empty filename to run it instead of STOR.
#21727
Posted: 09/26/2012 02:48:30
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

Great, thanks for the quick reply!
#21786
Posted: 10/02/2012 04:24:10
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

Ok, while performing some tests I've noticed that some quite common ftp servers (filezilla, IIS etc) do accept a filename (whith or whithout path) as argument to the STOU command and the other way around the ftp server of the IIS is the only server that I've come across so far that supports the STOU command whith no argument (as specified by RFC 959). Wouldn't it be a nice feature of the simple ftps client to be able to send the STOU command with an argument to make it compatible whith a wider range of ftp servers?

//Niklas
#21787
Posted: 10/02/2012 04:37:51
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Yes, this sounds reasonable. We will add this to our todo list.
#21788
Posted: 10/02/2012 04:41:15
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

Do you think that this feature will be added to SBB 10?
#21789
Posted: 10/02/2012 04:46:30
by Eugene Mayevski (EldoS Corp.)

It won't. Moreover, I don't see how this is expected to work. STOU command is used to let the server choose the filename. Why pass a filename to it?

Now, in TElSimpleFTPSClient STOU command is used when you pass no filename. If you pass a filename, STOR will be used. To decide which command to choose we would need to add some flag, thus complicate the interface significantly (as all upload-related methods must be updated and overloads must be added for them).

Given that so far you are the only person to ask for STOU command in 5 years when the component exists, you are welcome to add the idea to the wishlist and let's see if there's any demand for it.


Sincerely yours
Eugene Mayevski
#21790
Posted: 10/02/2012 04:59:43
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

I see your point. I'm replacing another 3:rd party with SecureBlackbox and I want the replacement to be as backward compatible as possible. Hopefully nobody uses the STOU command whith an argument, seems strange though that no ftp servers supports the STOU command whithout the argument?

I will consider adding this to the wishlist.

//Niklas
#21792
Posted: 10/02/2012 05:05:50
by Eugene Mayevski (EldoS Corp.)

In general, servers are correct - the RFC doesn't say that STOU command must be sent without a filename. It hints that filename must be provided by the client, but still says that the server will create a filename unique to the directory. Consequently the idea of using STOU is not clear. Can it be that STOU passes some "prefix" as a filename, and the server must (?) use this prefix as a constant part of the unique filename? In this case we could possibly add some property like "STOUPrefix".


Sincerely yours
Eugene Mayevski
#21793
Posted: 10/02/2012 05:23:56
by Niklas Kjellander (Standard support level)
Joined: 09/30/2008
Posts: 49

From my poit of viewou a STOUPrefix property would do the trick.

Do you still want it in the wishlist before you consider to add it?
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.

Reply

Statistics

Topic viewed 2700 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!