+1

On Fri, Sep 16, 2011 at 5:47 PM, Thomas Mortagne
<[email protected]>wrote:

> Hi devs,
>
> Right now it's pretty dangerous to manipulate script services from
> Velocity.
>
> If even you try to get a service that does not exist that will produce
> an exception which will kill your script for good. It's a pain to have
> use case like using a service only if it's here and fallback on
> something else otherwise.
>
> For example even if you disabled CSRF XWiki will fill in many places
> if you even think or removing the csrf jar. That seems pretty bad to
> me.
>
> The exception does not bring much value to scripts here (even for
> scripts supporting it) so I proposed to return null instead of
> throwing an exception.
>
> WDYT ?
>
> Here is my +1.
>
> --
> Thomas Mortagne
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Jérôme Velociter
Winesquare
http://www.winesquare.net/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to