Hi Denis,
On 21 Oct 2015 at 10:08:40, Denis Gervalle (dgl@softec.lu(mailto:dgl@softec.lu)) wrote:
Hi devs,
It looks like a bug to me, but wiki macro defined for global level in a
subwiki, are effectively influencing the whole farm. I would like to change
that like this:
* global level macro are registered global only if defined in the main wiki
* global and wiki level macro defined in a subwiki are registered at wiki
level
The rationals are:
* if the same global macro document is deployed on more than one wiki,
which just means the same extension defining that document is installed on
multiple wiki, maybe in different version, all those macros will be in
conflict, it will not be easy to know which one wins, and even more
difficult to detect the problem in the first place.
* there is risk (of course limited by the PR), that user of subwiki
influence the behaviors of the whole farm, which IMO is quite opposite to
the logical structure, and even the physical storage we are used to.
* I do not see any benefit of putting a global macro in a subwiki
wdyt ?
I think it’s a more global issue. For example any global user with PR can always impact
the whole farm even when he’s on a subwiki, since that user can register components in the
Root Component Manager for example.
The way we protected against this is by requiring PR on the main wiki.
Now I’m ok to do what you suggest, but just know it’s not the only way to impact the whole
farm from a subwiki. Makes it a bit less easy though ;)
Thanks
-Vincent
--
Denis Gervalle