EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Throw Error in TElCustomFileSystemAdapter

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#26678
Posted: 10/02/2013 09:32:03
by ITSG (Standard support level)
Joined: 06/27/2013
Posts: 34

Hey there,

i am having trouble raising an Access denied Error while
TElCustomFileSystemAdapter.DoOpenFile

i am using:
return SBCustomFSAdapter.__Global.SB_VFS_ERROR_ACCESS_DENIED
in my code.

When i try to upload a file, this is what happens:
STOR File.pdf
450 Requested file action not taken.

As the client handles this as an temporary Error, the client retries a few times. But this is a permanent Error wich should be 550 (no acess/permission denied.)

Changing to any of those Error Codes does not change anything:
SB_VFS_ERROR_ACCESS_DENIED = 103429;
public const int SB_VFS_ERROR_ERROR_CRC = 103447;
public const int SB_VFS_ERROR_FILE_NOT_FOUND = 103426;
public const int SB_VFS_ERROR_INVALID_PARAMETER = 103511;
public const int SB_VFS_ERROR_NO_MEDIA = 104536;
public const int SB_VFS_ERROR_NOT_SUPPORTED = 103474;
public const int SB_VFS_ERROR_PATH_NOT_FOUND = 103427;
public const int SB_VFS_ERROR_WRITE_PROTECT = 103443;
public const int SB_VFS_UNSPECIFIED_ERROR = 104448;

Can you help me out ?
Is there a chance to throw the real FTP ErrorCodes (like 550) ?

Regards
Martin
#26679
Posted: 10/02/2013 09:41:28
by Eugene Mayevski (EldoS Corp.)

Are you talking about TElSimpleFTPSServer?

What we can do is return 550 in case of particular VFS error code. For this some code modification in TElSimpleFTPSServer is needed as well though.

Other options are possible but we would need to design them properly.


Sincerely yours
Eugene Mayevski
#26681
Posted: 10/02/2013 10:07:40
by ITSG (Standard support level)
Joined: 06/27/2013
Posts: 34

Thank you for the fast reply.

Yes,it is the TElSimpleFTPSServer.
How can i return the 550 ? Or does that mean you need to modify the component sourcecode?
#26685
Posted: 10/02/2013 10:20:23
by Eugene Mayevski (EldoS Corp.)

Use TElFTPSServer and implement the rest yourself. TElSimpleFTPSServer is, as the name suggests, simple. It can't be as flexible as TElFTPSServer.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 401 times

Number of guests: 2, 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!