SFTP does not fire IwodFTPDNotify_Command for uplo - WeOnlyDo Discussion board

SFTP does not fire IwodFTPDNotify_Command for uplo (General questions)

by Chris, Thursday, December 07, 2006, 09:47 (6561 days ago)

I was trying to figure why my server transfer stats were not being updated when run in SFTP mode and after some testing, I have found that IwodFTPDNotify_Command does not fire at the point of STOR OR RETR. Here is my test log for all protocols. All work except SFTP. I even get same error when using your sample code.

FTP upload and download results from IwodFTPDNotify_Command:
=> SYST
=> FEAT
=> PWD
=> TYPE I
=> PASV
=> STOR DV_atr_t.bmp
Progress 27740/0
Progress 32454/0
=> TYPE A
=> PASV
=> LIST
=> TYPE A
=> PASV
=> LIST
=> TYPE I
=> PASV
=> RETR DV_atr_t.bmp
Progress 32454/32454

SFTP upload and download results from IwodFTPDNotify_Command. See no stor or retr commands:
=> CWD /
=> LIST
=> STAT /DV_atr_t.bmp
=> STAT /
REL /
RES C:iFTPsvrhprs
Progress 8192/0
Progress 16384/0
Progress 24576/0
Progress 32454/0
=> STAT /.
REL /
RES C:iFTPsvrhprs
=> CWD /
=> LIST
=> STAT /.
REL /
RES C:iFTPsvrhprs
=> CWD /
=> LIST
=> STAT /DV_atr_t.bmp
=> STAT /
REL /
RES C:iFTPsvrhprs
Progress 4096/32454
Progress 8192/32454
Progress 12288/32454
Progress 16384/32454
Progress 20480/32454
Progress 24576/32454
Progress 28672/32454
Progress 32454/32454

NO REFERENCE TO STOR OR RETR


SSL Implicit upload and download results from IwodFTPDNotify_Command:
=> SYST
=> FEAT
=> PBSZ 0
=> PROT P
=> PWD
=> TYPE I
=> PASV
=> STOR DV_atr_t.bmp
Progress 8192/0
Progress 16384/0
Progress 24576/0
Progress 32454/0
=> TYPE A
=> PASV
=> LIST
=> TYPE A
=> PASV
=> LIST
=> TYPE I
=> PASV
=> RETR DV_atr_t.bmp
Progress 32454/32454

SSL Explicit upload and download results from IwodFTPDNotify_Command:
=> SYST
=> FEAT
=> PBSZ 0
=> PROT P
=> PWD
=> TYPE I
=> PASV
=> STOR DV_atr_t.bmp
Progress 4096/0
Progress 16384/0
Progress 28672/0
Progress 32454/0
=> TYPE A
=> PASV
=> LIST
=> TYPE A
=> PASV
=> LIST
=> TYPE I
=> PASV
=> RETR DV_atr_t.bmp
Progress 32454/32454

Re: SFTP does not fire IwodFTPDNotify_Command for

by wodDamir, Thursday, December 07, 2006, 11:13 (6561 days ago) @ Chris

Hi Chris,

This isn't an error. This is normal, as they were never sent. The SFTP Protocol is a completely different protocol then FTP/FTPS, and thus works in a completely different way.

As you can see in your log, everthing worked fine, but those commands simply were not sent.

Regards,
Damba

Re: SFTP does not fire IwodFTPDNotify_Command for

by chris, Thursday, December 07, 2006, 11:33 (6561 days ago) @ wodDamir

Would it not be consistent to offer some kind of command notification for get/put for all protocols?

Re: SFTP does not fire IwodFTPDNotify_Command for

by wodDamir, Thursday, December 07, 2006, 12:33 (6561 days ago) @ chris

Chris,

Why don't you try using UploadFile and DownloadFile Event? They will trigger when someone does either one of those methods on all protocols.

Regards,
Damba