EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Secure Black Box

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#9502
Posted: 04/01/2009 23:43:13
by Monika Sharma (Standard support level)
Joined: 02/20/2009
Posts: 20

Hi


I am facing one issue while uploading file through SFTPClient.Uploadfile().
This issue is not occuring for each & every file. This is just a random behaviour on our QA server and we are not able to replicate also on local or dev server.

Scenario : I have uploaded 1 file (wf_STAGE_HRQ_WF1.parm) on Unix Server. Instead of uploading the file it has created folder with the same name.

Can anyone have faced this kind of issue while uplaoding file.

Kindly provide me any help regarding this

Thanks & Regards
Monika Sharma
#9503
Posted: 04/02/2009 00:09:19
by Eugene Mayevski (EldoS Corp.)

Please show the code which is used to upload the file. Maybe you need to explicitly specify file attributes when uploading the file.


Sincerely yours
Eugene Mayevski
#9504
Posted: 04/02/2009 00:14:13
by Monika Sharma (Standard support level)
Joined: 02/20/2009
Posts: 20

Hi

This is the code we are using for uploading the file

_sftpClient.UploadFile(localfilepath,remotefilepath)

where localfilepath is the absolute file path on local server from where we need to upload the file
and remotefilepath is the absolute file path on Remote Server(Unix server) on which we need to upload the file.

Thanks & Regards
Monika
#9505
Posted: 04/02/2009 00:51:40
by Eugene Mayevski (EldoS Corp.)

Can you please post *exact* values of LocalFilePath and RemoteFilePath?

Does the folder, to which RemoteFilePath refers, exist at the moment of upload?
UploadFile can create the remote folder if it doesn't exist, and it's possible that the problem is in the folder creation.

Also, please specify the version of SecureBlackbox that you are using.


Sincerely yours
Eugene Mayevski
#9506
Posted: 04/02/2009 01:00:48
by Monika Sharma (Standard support level)
Joined: 02/20/2009
Posts: 20

Hi

We are using EldoS.SFTPBlackbox.5 verion of SecureBlackbox.

This is the .net C# code which we are using

_sftpClient.UploadFile(@"C:\HMP\DataRoot\wf_STAGE_HRQ_WF1.parm1",
"/apps/infav8/HPT/QA/Parms/HRQ/wf_STAGE_HRQ_WF1.parm1");

Actually we are uploading lots of files using this code but we have faced this issue just once. For other files it is not creating folder.

I am attaching you screen shot in which right side is the folder which is actually the file which we are uploading

In which scenario it can happen.

Thanks & regards
Monika Sharma
#9507
Posted: 04/02/2009 01:16:11
by Monika Sharma (Standard support level)
Joined: 02/20/2009
Posts: 20

Hi

Sorry I forgot to reply this qstn

Yes the folder to which RemoteFilePath refers, exist at the moment of upload
If it doesnt exist then we';; throw exception we are not creating folder in this case

Thanks & Regards
Monika
#9517
Posted: 04/02/2009 06:37:45
by Ken Ivanov (EldoS Corp.)

Quote
This is the .net C# code which we are using
...

Is it the exact code? In other words, does exactly this code always fail when it is executed?

The reason why we are asking this is that we assume that the problem is caused by the specifics of the name of the file that fails to be uploaded correctly. The client or the server might be confused by a name and behave in an improper way. Can it be that the file name occasionally contains trailing space or tab characters (or other "special" characters, such as line endings)? Did you notice something common between the names of the files which fail to upload?
#9532
Posted: 04/02/2009 22:07:44
by Monika Sharma (Standard support level)
Joined: 02/20/2009
Posts: 20

Hi

This is the only file that fails. We have not found this issue in any other file.

Thanks & regards
Monika Sharma
#9548
Posted: 04/03/2009 04:44:56
by Ken Ivanov (EldoS Corp.)

Then I am completely out of ideas... We have tried to reproduce the issue here with the file with the same name and it has been uploaded correctly for us.

Can you please check if the same problem is exposed if the file is uploaded to some other directory? Please try several cases of the second parameter of the UploadFile() method:
"wf_STAGE_HRQ_WF1.parm1",
"./wf_STAGE_HRQ_WF1.parm1",
"somedirectory/someotherdirectory/wf_STAGE_HRQ_WF1.parm1"
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

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