EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Several filter instances and reparse

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.
#21028
Posted: 08/13/2012 08:40:34
by Christian Wimmer (Standard support level)
Joined: 11/18/2011
Posts: 16

hi

We use SetOnReparseFileName to reparse file names. However, it looks like if several instances of our process are started (e.g. in different sessions on a terminal server) only the last instance gets this specific callback (doesn't matter what *UseNewFileName is). The other callbacks don't seem to be affected because the FileMon sample work when started twice.
So is there a way to say, I don't care about this specific filename in the reparse rule and in this callback, just use default and let the next filter (in chain) try?

thx
#21029
Posted: 08/13/2012 11:47:48
by Vladimir Cherniga (EldoS Corp.)

Quote
So is there a way to say, I don't care about this specific filename in the reparse rule and in this callback, just use default and let the next filter (in chain) try?

It should work as described, except one case, when any user callback in the callback filters chain returns FALSE in RequestAccepted parameter or raise an exception from callback handler. Is it possible that one of your filter instance return false or throw an exception from pre-create callback ? Reparse is processed right after create callback and the last one may change the flow of callbacks so that reparse callback will be skipped.
#21043
Posted: 08/16/2012 06:40:36
by Christian Wimmer (Standard support level)
Joined: 11/18/2011
Posts: 16

no, RequestAccepted is never used, nor a callback for that. Reparse is only called for the very last instance of a filter (better: AttachFilter)
#21047
Posted: 08/16/2012 10:50:32
by Vladimir Cherniga (EldoS Corp.)

This is a bug in user mode code. It will be fixed in the incoming build. The reason of problem is next - when reparse callback returns nothing in NewFileName buffer it forced to return error status from callback and filters chain interrupted.

Reply

Statistics

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