I discovered the following today, that I've never seen mentioned in devnet forums or KB/tech articles. I filed a case for it, but I thought I'd share.
Imagine you wanna use iwmigrate, to copy a branch from store SOURCE to store TARGET.
iwmigrate -o /extra/data/gwts/iw-store/TARGET -m /iwmnt/SOURCE -b /SOURCE/main
Does the submit filter apply, you wonder? Well, yes, in a weird way!
The submit filter will be applied, as though the submits are happening in the "default" store.For instance, the following submit.cfg rule would be applied
^/default/main/WORKAREA/.*$ # main branch in default store
{
.* { gid=test perm=0664 }
}
... while the following submit.cfg rule would NOT be applied.
^/TARGET/main/WORKAREA/.*$ # main branch in TARGET store
{
.* { gid=test perm=0664 }
}
This is confirmed in the iwmigrate output if you have in iw.cfg the setting [iwserver] debug_event_handler=yes
-> EVENT HANDLER: gid=test performed on "/iwserver/default/main/WORKAREA/temp_workarea/upload/images/homepage/yacht.gif"
I'm surprised.
My expectation for this would actually be
- that the submit filter is not at all applied on iwmigrate, because the current filter shouldn't impact a copy operation of old data.
- if it is being applied, it should be optional through a command argument to iwmigrate.
- if it is being applied, I'd imagine it should be applied with the proper TARGET store name.
The fact that submit.cfg applies to iwmigrate is at least a documentation bug - IHMO.
The way submit.cfg applies to iwmigrate, may be an implementation bug also - I leave that up to IWOV to decide.
--Fred.