EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem adding callback rule

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.
#15219
Posted: 12/05/2010 23:26:47
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

Hi,

Each time I login to my application I am adding callback rules in the callback filter for certain type of files. The file types change each time I login. I use DeleteAllFilterRules() function to delete all current rules and AddFilterCallbackRule() to add the new ones. But it doesn't seem to be working. The rules are not getting updated each time I login. It stays at the first set of rules that I set at the first login.

Is there something wrong I am doing in this scenario. Please enlighten me on this.

Yours Thankfully,
Rohini V N
#15220
Posted: 12/06/2010 00:51:42
by Vladimir Cherniga (EldoS Corp.)

Hi,
did you use DeleteAllFilterRules() before DetachFilter() ? When do you invoke AddFilterCallbackRule(), before or after AttachFilter() ?
#15221
Posted: 12/06/2010 00:57:45
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

Hi,

Thank you for the reply.

Yes. I call DeleteAllFilterRules() before DetachFilter(). I call AttachFilter after calling AddFilterCallbackRule().

Regards,
Rohini
#15222
Posted: 12/06/2010 01:31:47
by Vladimir Cherniga (EldoS Corp.)

Could you add GetFilterCount() after DeleteAllFilterRules() and after DetachFilter(). Then check the returned values.
#15223
Posted: 12/06/2010 02:33:48
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

The return values is zero in both cases.
#15224
Posted: 12/06/2010 04:55:16
by Vladimir Cherniga (EldoS Corp.)

Ok, thank you, could you specify how do you determine that rules not applied properly ? Do you read them through GetFilterRule() api ? Does this issue exists even if you not re-login to the system ?
#15226
Posted: 12/06/2010 21:14:08
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

I am tracking the renaming of the files in the file system. Renamed file has to be uploaded to the system and it will be displayed in a dialog. I don't get that working. I don't even get a call in this function CbFltRenameOrMoveFileEventN().
#15228
Posted: 12/07/2010 01:23:06
by Vladimir Cherniga (EldoS Corp.)

May be the path to the renamed file is excluded from your filter path ? Is there a simple way to reproduce the bug, please describe in details. Another version - the file may be not renamed directly, create-copy-delete actions produce similar results. Such cases could be tracked with well-known Procmon utility.
#15252
Posted: 12/08/2010 00:57:06
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

Hi,

The issue was, as u told the rename path being excluded from the filter path.
Your suggestion was really really helpful...

Thank you very much....
Rohini.
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.

Reply

Statistics

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