Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-28 Thread vinc...@massol.net
Hi Bryn, On 27 Jan 2015 at 19:34:14, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: Vincent said: Using Utils.getRootComponentManager() worked for me, so many thanks. Even using a deprecated method lets me progress with the task. The recommended

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread Bryn Jeffries
Vincent said: Using Utils.getRootComponentManager() worked for me, so many thanks. Even using a deprecated method lets me progress with the task. The recommended way is the one I’ve now documented at http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HAccessfromScripts

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread vinc...@massol.net
  On 27 Jan 2015 at 12:02:01, Thomas Mortagne (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote: On Tue, Jan 27, 2015 at 11:55 AM, vinc...@massol.net wrote: Hi Bryn, Apparently we broke backward compat and this is bad… We used to return the root Component Manager

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread Bryn Jeffries
Thanks Vincent, Using Utils.getRootComponentManager() worked for me, so many thanks. Even using a deprecated method lets me progress with the task. Bryn From: Vincent Massol [vmas...@gmail.com] on behalf of vinc...@massol.net [vinc...@massol.net] Sent: 27

[xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread Bryn Jeffries
I tried to follow the example code given in: http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+a+component+using+Groovy Saving and Viewing a page with the code without changes, I got a Groovy macro error with the following exception in the stack trace: java.lang.RuntimeException: The

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread vinc...@massol.net
Hi Bryn, Apparently we broke backward compat and this is bad… We used to return the root Component Manager when calling Utils.getComponentManager() But it’s been modified and deprecated in XWiki 6.1M1 (http://jira.xwiki.org/browse/XWIKI-10352) to return the Context Component Manager. Now,

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread vinc...@massol.net
On 27 Jan 2015 at 12:14:28, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: Thanks Vincent, Using Utils.getRootComponentManager() worked for me, so many thanks. Even using a deprecated method lets me progress with the task. The recommended way

Re: [xwiki-users] Error: The Context Component Manager should only be used for read access.

2015-01-27 Thread Thomas Mortagne
On Tue, Jan 27, 2015 at 11:55 AM, vinc...@massol.net vinc...@massol.net wrote: Hi Bryn, Apparently we broke backward compat and this is bad… We used to return the root Component Manager when calling Utils.getComponentManager() But it’s been modified and deprecated in XWiki 6.1M1