EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Unaccepted server reply (error code is 221)

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#4741
Posted: 01/18/2008 06:34:58
by Jesse Terrell (Standard support level)
Joined: 05/29/2007
Posts: 24

Using TElSimpleFTPSClient
Version 5.2.0.117
Runtime Version v2.0.50727

My application opens connection:
Response is:
"220 sftp.webtpa.com X2 WS_FTP Server 6.0(84863647)\r\n"

My application sens user id and password. All is well here.
My application sends FEAT.
Response is:
"221-Extensions supported\r\n SIZE\r\n XMD5\r\n XSHA1\r\n XSHA256\r\n XSHA512\r\n LANG EN, ES, FR, GE\r\n MDTM\r\n MLST size*;type*;perm*;create*;modify*;\r\n REST STREAM\r\n TVFS\r\n UTF8\r\n AUTH SSL;TLS-P;\r\n PBSZ\r\n PROT C;P;\r\n221 end\r\n"

This throws an error of:
Unaccepted server reply (error code is 221)

Stack trace is:

Unaccepted server reply (error code is 221) at SBSimpleFTPS.TElSimpleFTPSClient.DoSendCmd(String Command, Int16[] AcceptCodes, Boolean EstablishDataConnection) at SBSimpleFTPS.TElSimpleFTPSClient.SendCmd(String Command, Int16[] AcceptCodes) at SBSimpleFTPS.TElSimpleFTPSClient.GetFeatures() at SBSimpleFTPS.TElSimpleFTPSClient.Login()

Any ideas on why the FEAT response is causing an "unaccepted server reply"? Thanks in advance.

#4742
Posted: 01/18/2008 06:41:09
by Eugene Mayevski (EldoS Corp.)

The problem is with WS_FTP developers who seem to not read the standards before writing anything. WS_FTP doesn't follow the standards wherever possible.

RFC 2389 clearly says: the allowed responses for FEAT command are 211, 501 and 502. If the server sends junk, then you get error.


Sincerely yours
Eugene Mayevski
#4743
Posted: 01/18/2008 06:48:54
by Jesse Terrell (Standard support level)
Joined: 05/29/2007
Posts: 24

"If the server sends junk, then you get error."

True, true...

Do you recommend coding around FEAT response 221 from WS_FTP servers?
WS_FTP is a popular server. Will SecureBlackbox be updated to account for it's non-standard response? Has it already been updated and I'm using an old version?

Any insight you can offer will be greatly appreciated.
#4744
Posted: 01/18/2008 07:07:51
by Eugene Mayevski (EldoS Corp.)

In SBB 6, if unaccepted code is received, there's no exception (but command execution result is not processed). Also, I've added 221 to the list of accepted commands.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 3254 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!