[xwiki-devs] New HTML Macro "restricted" mode question
Hi Andreas, What happens if "clean" is false when executing in "restricted" mode? Thanks -Vincent
2012-06-09 18:47, Andreas Jonsson skrev:
2012-06-09 15:17, Vincent Massol skrev:
Hi Andreas,
What happens if "clean" is false when executing in "restricted" mode?
I have not thought about that yet, but I can see two possibilities: 1) enforce clean 2) don't execute the macro.
Considering the fact that the user have explicitly requested clean="false" it seems most reasonable to raise an error to inform the user that this is not allowed. I'm going with this solution for now. Best Regards, /Andreas
On Jun 9, 2012, at 9:08 PM, Andreas Jonsson wrote:
2012-06-09 18:47, Andreas Jonsson skrev:
2012-06-09 15:17, Vincent Massol skrev:
Hi Andreas,
What happens if "clean" is false when executing in "restricted" mode?
I have not thought about that yet, but I can see two possibilities: 1) enforce clean 2) don't execute the macro.
Considering the fact that the user have explicitly requested clean="false" it seems most reasonable to raise an error to inform the user that this is not allowed. I'm going with this solution for now.
s/reasonable/unreasonable ? Throwing an exception sounds best to me too. Thanks -Vincent
On Sat, Jun 9, 2012 at 9:08 PM, Andreas Jonsson <[email protected]> wrote:
2012-06-09 18:47, Andreas Jonsson skrev:
2012-06-09 15:17, Vincent Massol skrev:
Hi Andreas,
What happens if "clean" is false when executing in "restricted" mode?
I have not thought about that yet, but I can see two possibilities: 1) enforce clean 2) don't execute the macro.
Considering the fact that the user have explicitly requested clean="false" it seems most reasonable to raise an error to inform the user that this is not allowed. I'm going with this solution for now.
+1
Best Regards,
/Andreas _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (3)
-
Andreas Jonsson -
Thomas Mortagne -
Vincent Massol