On Tue, Feb 19, 2013 at 2:38 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com>wrote;wrote:
Hi devs,
Right now the model script service use "currentmixed" as default
resolver and it should use "current" one IMO:
1) it's behavior is not very clear for a newcomer
2) it's pretty much unusable for attachments
The difference between the two resolver is that "currentmixed" resolve
document name beased on default (WebHome) instead of current document.
AFAIK this resolver as been introduced for retro compatibility purpose
because in some old APIs like XWikiDocument contructors the document
name was resolver as WebHome and not based on the current document.
So I propose to change the default resolver to "current".
Here is my +1.
Obviously, I am +1 since I have just face the issue which cause Thomas to
open this thread.
This script service is not much used yet, I doubt anybody is using it
expecting to get WebHome when resolving the document
name but since
it's a behaviour change 5.0 is the right time for it.
I am not sure you are right here. The shorter we leave it like it is, the
less chance we have to break someone.
So, I would be in favor of considering this a bug, and fixing it in 4.5.1.
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO