XWiki 7.2 - Velocity Script Errors

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

XWiki 7.2 - Velocity Script Errors

laurin1
I tried to send this once, but it looks like it did not go through.

I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity scripts work. I ended up rolling back to 7.1.2, because it's unusable in this state.

org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.
                at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
                at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
                at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
                at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
                at org.xwiki.panels.internal.PanelWikiUIExtension$1.call(PanelWikiUIExtension.java:175)
                at org.xwiki.panels.internal.PanelWikiUIExtension$1.call(PanelWikiUIExtension.java:169)
                at com.xpn.xwiki.internal.template.SUExecutor.call(SUExecutor.java:91)
                at org.xwiki.panels.internal.PanelWikiUIExtension.execute(PanelWikiUIExtension.java:168)
                at sun.reflect.GeneratedMethodAccessor566.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
                at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
                at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
                at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
                at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:151)
                at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
                at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
                at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
                at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:729)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
                at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
                at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1822)
                at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800)
                at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:820)
                at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
                at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
                at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
                at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
                at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
                at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
                at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
                at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:729)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
                at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
                at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1822)
                at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800)
                at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:820)
                at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
                at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
                at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
                at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
                at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
                at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
                at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
                at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
                at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
                at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
                at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
                at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
                at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:729)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
                at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
                at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
                at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1822)
                at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
                at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431)
                at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
                at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
                at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
                at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
                at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
                at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
                at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Unknown Source)



_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

vmassol
Administrator
Hi Keith,

See http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

Are you sure you’ve executed the Distribution Wizard? (because by default we give Script Rights to users).

@Edy: I think we need some additional info in the Release Notes about this.

Thanks
-Vincent

On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email](mailto:[hidden email])) wrote:

> I tried to send this once, but it looks like it did not go through.
>  
> I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity scripts work. I ended up rolling back to 7.1.2, because it's unusable in this state.
>  
> org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.

[snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
Yes, I did execute the Distribution Wizard.

Keith Davis (214) 906-5183

From: Vincent Massol [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, October 05, 2015 6:30 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hi Keith,

See http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

Are you sure you’ve executed the Distribution Wizard? (because by default we give Script Rights to users).

@Edy: I think we need some additional info in the Release Notes about this.

Thanks
-Vincent

On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email](mailto:[hidden email]))<mailto:[hidden email](mailto:[hidden email]))> wrote:

> I tried to send this once, but it looks like it did not go through.
>
> I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity scripts work. I ended up rolling back to 7.1.2, because it's unusable in this state.
>
> org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.

[snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

Eduard Moraru
Hello Keith,

I see 2 possibilities here:

1) Is there any chance that, while you`ve executed the Distribution Wizard,
you might have missed (ignored) the document XWiki.XWikiPreferences? Or
maybe you`ve chosen to keep all your changes? The point is that you rights
configuration (specifically the 'script' right section) for the
XWikiAllGroup in Administration should look like in this screenshot [1]
(from the 7.2 release notes [2]). The 'script' right is explicitly given to
all users so that the migration/upgrade behaves as before, until you decide
otherwise. Please check that the rights setup is properly upgraded.

2) The only other case I can think of is that you might have deleted the
user that is set as last content author in (most of) your documents. If
this is the case, then indeed the scripts will not be able to be executed
since the user no longer exists (and thus can not own the 'script' right).
To fix this, you could recreate the previously deleted user and make sure
he has the 'script' right.

Please let us know if that helps.

Thanks,
Eduard

----------
[1]
http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
[2]
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis <[hidden email]>
wrote:

> Yes, I did execute the Distribution Wizard.
>
> Keith Davis (214) 906-5183
>
> From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> [hidden email]
> Sent: Monday, October 05, 2015 6:30 AM
> To: XWiki Users
> Cc: Keith Davis
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> See
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>
> Are you sure you’ve executed the Distribution Wizard? (because by default
> we give Script Rights to users).
>
> @Edy: I think we need some additional info in the Release Notes about this.
>
> Thanks
> -Vincent
>
> On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email](mailto:
> [hidden email]))<mailto:[hidden email](mailto:
> [hidden email]))> wrote:
>
> > I tried to send this once, but it looks like it did not go through.
> >
> > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> unusable in this state.
> >
> > org.xwiki.rendering.macro.MacroExecutionException: The execution of the
> [velocity] script macro is not allowed. Check the rights of its last author
> or the parameters if it's rendered from another script.
>
> [snip]
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

vmassol
Administrator


On 5 Oct 2015 at 14:33:11, Eduard Moraru ([hidden email](mailto:[hidden email])) wrote:

> Hello Keith,
>  
> I see 2 possibilities here:
>  
> 1) Is there any chance that, while you`ve executed the Distribution Wizard,
> you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> maybe you`ve chosen to keep all your changes? The point is that you rights
> configuration (specifically the 'script' right section) for the
> XWikiAllGroup in Administration should look like in this screenshot [1]
> (from the 7.2 release notes [2]). The 'script' right is explicitly given to
> all users so that the migration/upgrade behaves as before, until you decide
> otherwise. Please check that the rights setup is properly upgraded.
>  
> 2) The only other case I can think of is that you might have deleted the
> user that is set as last content author in (most of) your documents. If
> this is the case, then indeed the scripts will not be able to be executed
> since the user no longer exists (and thus can not own the 'script' right).
> To fix this, you could recreate the previously deleted user and make sure
> he has the 'script' right.

On this second point, does it mean that we cannot delete users anymore because of this? That could be an issue…

Thanks
-Vincent

> Please let us know if that helps.
>  
> Thanks,
> Eduard
>  
> ----------
> [1]
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>  
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis  
> wrote:
>  
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > [hidden email]
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by default
> > we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes about this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email](mailto:
> > [hidden email]))> > [hidden email]))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > unusable in this state.
> > >
> > > org.xwiki.rendering.macro.MacroExecutionException: The execution of the
> > [velocity] script macro is not allowed. Check the rights of its last author
> > or the parameters if it's rendered from another script.
> >
> > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
In reply to this post by Eduard Moraru
"Is there any chance that, while you`ve executed the Distribution Wizard, you might have missed (ignored) the document XWiki.XWikiPreferences "

I suppose - those boxes were not checked, but I checked those boxes manually and it still did not work. How do I figure out what user is the author? How do I change the author of a script?

BTW, this is almost every velocity script.

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
Sent: Monday, October 05, 2015 7:33 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hello Keith,

I see 2 possibilities here:

1) Is there any chance that, while you`ve executed the Distribution Wizard, you might have missed (ignored) the document XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes? The point is that you rights configuration (specifically the 'script' right section) for the XWikiAllGroup in Administration should look like in this screenshot [1] (from the 7.2 release notes [2]). The 'script' right is explicitly given to all users so that the migration/upgrade behaves as before, until you decide otherwise. Please check that the rights setup is properly upgraded.

2) The only other case I can think of is that you might have deleted the user that is set as last content author in (most of) your documents. If this is the case, then indeed the scripts will not be able to be executed since the user no longer exists (and thus can not own the 'script' right).
To fix this, you could recreate the previously deleted user and make sure he has the 'script' right.

Please let us know if that helps.

Thanks,
Eduard

----------
[1]
http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
[2]
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis <[hidden email]>
wrote:

> Yes, I did execute the Distribution Wizard.
>
> Keith Davis (214) 906-5183
>
> From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> [hidden email]
> Sent: Monday, October 05, 2015 6:30 AM
> To: XWiki Users
> Cc: Keith Davis
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> See
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> Scriptright
>
> Are you sure you’ve executed the Distribution Wizard? (because by
> default we give Script Rights to users).
>
> @Edy: I think we need some additional info in the Release Notes about this.
>
> Thanks
> -Vincent
>
> On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email](mailto:
> [hidden email]))<mailto:[hidden email](mailto:
> [hidden email]))> wrote:
>
> > I tried to send this once, but it looks like it did not go through.
> >
> > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> unusable in this state.
> >
> > org.xwiki.rendering.macro.MacroExecutionException: The execution of
> > the
> [velocity] script macro is not allowed. Check the rights of its last
> author or the parameters if it's rendered from another script.
>
> [snip]
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

Eduard Moraru
Hi Keith,

On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis <[hidden email]>
wrote:

> "Is there any chance that, while you`ve executed the Distribution Wizard,
> you might have missed (ignored) the document XWiki.XWikiPreferences "
>
> I suppose - those boxes were not checked, but I checked those boxes
> manually and it still did not work.
>

So you are saying that you`ve set the rights of the XWikiAllGroup as in the
screenshot and you still have issues. Have you tried isolating the problem
in a new page? Like creating a new page, writing/adding a velocity macro
(event with some static text content, it does not matter) and then saving
the page to see if it is executed properly and that you get no error?

How do I figure out what user is the author? How do I change the author of
> a script?
>

The last author of a script is the same thing as the last content author of
the document in which the script is located. If you have problems with the
scripts inside Main.Welcome (for example), you look at its "Last modified
by" label, under the page title. That will tell you the user that last
modified the page. The gotcha here is that the script right (just like the
programming right) actually checks the last content author of that page, so
the last user that changed the page's content (not the last user that added
a comment for example, for that saved the page without changes, etc.).

To make it easier, I`ve published this small app [1] that you can install
with the Extension Manager and check the content author and the status of
Programming and Script rights on a particular page.

You need to identify who is the "content author" on the documents that
contain scripts and that fail to work on your setup.

Hope this helps,
Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author


>
> BTW, this is almost every velocity script.
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
> Sent: Monday, October 05, 2015 7:33 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hello Keith,
>
> I see 2 possibilities here:
>
> 1) Is there any chance that, while you`ve executed the Distribution
> Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> The point is that you rights configuration (specifically the 'script' right
> section) for the XWikiAllGroup in Administration should look like in this
> screenshot [1] (from the 7.2 release notes [2]). The 'script' right is
> explicitly given to all users so that the migration/upgrade behaves as
> before, until you decide otherwise. Please check that the rights setup is
> properly upgraded.
>
> 2) The only other case I can think of is that you might have deleted the
> user that is set as last content author in (most of) your documents. If
> this is the case, then indeed the scripts will not be able to be executed
> since the user no longer exists (and thus can not own the 'script' right).
> To fix this, you could recreate the previously deleted user and make sure
> he has the 'script' right.
>
> Please let us know if that helps.
>
> Thanks,
> Eduard
>
> ----------
> [1]
>
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
>
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis <[hidden email]>
> wrote:
>
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > [hidden email]
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> > Scriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by
> > default we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes about
> this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> (mailto:
> > [hidden email]))<mailto:[hidden email](mailto:
> > [hidden email]))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > unusable in this state.
> > >
> > > org.xwiki.rendering.macro.MacroExecutionException: The execution of
> > > the
> > [velocity] script macro is not allowed. Check the rights of its last
> > author or the parameters if it's rendered from another script.
> >
> > [snip]
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

Eduard Moraru
In reply to this post by vmassol
On Mon, Oct 5, 2015 at 3:37 PM, [hidden email] <[hidden email]>
wrote:

>
>
> On 5 Oct 2015 at 14:33:11, Eduard Moraru ([hidden email](mailto:
> [hidden email])) wrote:
>
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> Wizard,
> > you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> > maybe you`ve chosen to keep all your changes? The point is that you
> rights
> > configuration (specifically the 'script' right section) for the
> > XWikiAllGroup in Administration should look like in this screenshot [1]
> > (from the 7.2 release notes [2]). The 'script' right is explicitly given
> to
> > all users so that the migration/upgrade behaves as before, until you
> decide
> > otherwise. Please check that the rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted the
> > user that is set as last content author in (most of) your documents. If
> > this is the case, then indeed the scripts will not be able to be executed
> > since the user no longer exists (and thus can not own the 'script'
> right).
> > To fix this, you could recreate the previously deleted user and make sure
> > he has the 'script' right.
>
> On this second point, does it mean that we cannot delete users anymore
> because of this? That could be an issue…
>

How is this different from what we are doing with Programming Rights? If
the author of the script is no more, then the script's credibility is no
more, so it should not be executed.

Thanks,
Eduard


>
> Thanks
> -Vincent
>
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > ----------
> > [1]
> >
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > [hidden email]
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > >
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> default
> > > we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes about
> this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> (mailto:
> > > [hidden email]))> > [hidden email]))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > > unusable in this state.
> > > >
> > > > org.xwiki.rendering.macro.MacroExecutionException: The execution of
> the
> > > [velocity] script macro is not allowed. Check the rights of its last
> author
> > > or the parameters if it's rendered from another script.
> > >
> > > [snip]
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

vmassol
Administrator



On 5 Oct 2015 at 17:20:39, Eduard Moraru ([hidden email](mailto:[hidden email])) wrote:

> On Mon, Oct 5, 2015 at 3:37 PM, [hidden email]  
> wrote:
>  
> >
> >
> > On 5 Oct 2015 at 14:33:11, Eduard Moraru ([hidden email](mailto:
> > [hidden email])) wrote:
> >
> > > Hello Keith,
> > >
> > > I see 2 possibilities here:
> > >
> > > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard,
> > > you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> > > maybe you`ve chosen to keep all your changes? The point is that you
> > rights
> > > configuration (specifically the 'script' right section) for the
> > > XWikiAllGroup in Administration should look like in this screenshot [1]
> > > (from the 7.2 release notes [2]). The 'script' right is explicitly given
> > to
> > > all users so that the migration/upgrade behaves as before, until you
> > decide
> > > otherwise. Please check that the rights setup is properly upgraded.
> > >
> > > 2) The only other case I can think of is that you might have deleted the
> > > user that is set as last content author in (most of) your documents. If
> > > this is the case, then indeed the scripts will not be able to be executed
> > > since the user no longer exists (and thus can not own the 'script'
> > right).
> > > To fix this, you could recreate the previously deleted user and make sure
> > > he has the 'script' right.
> >
> > On this second point, does it mean that we cannot delete users anymore
> > because of this? That could be an issue…
> >
>  
> How is this different from what we are doing with Programming Rights? If
> the author of the script is no more, then the script's credibility is no
> more, so it should not be executed.

The difference is that we use script macros everywhere (a lot more than PR) so this makes it now completely impossible to remove any user who’s ever coded using some script macros.

Thus I believe we need to brainstorm and find a solution as it’s becoming more urgent now.

Some ideas:
* Don’t allow deleting users, just allow disabling them.
* When deleting a user, ask who’s becoming responsible for the content of that author (ie associate the 2 ids) and when checking permissions, check using the responsible user id.
* Before deleting a user warn about the consequences (for pages which have PRs and Scripts) and recommend disabling the user instead. And wait for signed scripts, hoping that it won’t take long before we implement it...
* Have a store for deleted users and use it when checking permissions

Thanks
-Vincent

> Thanks,
> Eduard
>  
>  
> >
> > Thanks
> > -Vincent
> >
> > > Please let us know if that helps.
> > >
> > > Thanks,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > [2]
> > >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > >
> > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > wrote:
> > >
> > > > Yes, I did execute the Distribution Wizard.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > [hidden email]
> > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > To: XWiki Users
> > > > Cc: Keith Davis
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hi Keith,
> > > >
> > > > See
> > > >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > > >
> > > > Are you sure you’ve executed the Distribution Wizard? (because by
> > default
> > > > we give Script Rights to users).
> > > >
> > > > @Edy: I think we need some additional info in the Release Notes about
> > this.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > (mailto:
> > > > [hidden email]))> > [hidden email]))> wrote:
> > > >
> > > > > I tried to send this once, but it looks like it did not go through.
> > > > >
> > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > > > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > > > unusable in this state.
> > > > >
> > > > > org.xwiki.rendering.macro.MacroExecutionException: The execution of
> > the
> > > > [velocity] script macro is not allowed. Check the rights of its last
> > author
> > > > or the parameters if it's rendered from another script.
> > > >
> > > > [snip]
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
In reply to this post by Eduard Moraru
Maybe we are not talking about the same thing. None of the scripts work, that includes the panel scripts, like My Recent Modifications, Backlinks and Recently Modified. Are you saying that the last Author of the that page is Author of the panel scripts as well, though those are shown on every page??? We don't write or create any velocity scripts - we are only using the ones that came with XWiki or installed via Extensions.

Also, the extension managements pages are broken (I sent that in the first email that did not go through). Under Extension Manager, Add Extensions is listed, but is broken (I think, I'm back on 7.1.2 right now), but the other links all are like this:

$services.localization.render
('admin.xwiki.installedextensions')

Those definitely do no work.


Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
Sent: Monday, October 05, 2015 10:18 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hi Keith,

On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis <[hidden email]>
wrote:

> "Is there any chance that, while you`ve executed the Distribution
> Wizard, you might have missed (ignored) the document XWiki.XWikiPreferences "
>
> I suppose - those boxes were not checked, but I checked those boxes
> manually and it still did not work.
>

So you are saying that you`ve set the rights of the XWikiAllGroup as in the screenshot and you still have issues. Have you tried isolating the problem in a new page? Like creating a new page, writing/adding a velocity macro (event with some static text content, it does not matter) and then saving the page to see if it is executed properly and that you get no error?

How do I figure out what user is the author? How do I change the author of
> a script?
>

The last author of a script is the same thing as the last content author of the document in which the script is located. If you have problems with the scripts inside Main.Welcome (for example), you look at its "Last modified by" label, under the page title. That will tell you the user that last modified the page. The gotcha here is that the script right (just like the programming right) actually checks the last content author of that page, so the last user that changed the page's content (not the last user that added a comment for example, for that saved the page without changes, etc.).

To make it easier, I`ve published this small app [1] that you can install with the Extension Manager and check the content author and the status of Programming and Script rights on a particular page.

You need to identify who is the "content author" on the documents that contain scripts and that fail to work on your setup.

Hope this helps,
Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author


>
> BTW, this is almost every velocity script.
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard
> Moraru
> Sent: Monday, October 05, 2015 7:33 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hello Keith,
>
> I see 2 possibilities here:
>
> 1) Is there any chance that, while you`ve executed the Distribution
> Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> The point is that you rights configuration (specifically the 'script'
> right
> section) for the XWikiAllGroup in Administration should look like in
> this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> right is explicitly given to all users so that the migration/upgrade
> behaves as before, until you decide otherwise. Please check that the
> rights setup is properly upgraded.
>
> 2) The only other case I can think of is that you might have deleted
> the user that is set as last content author in (most of) your
> documents. If this is the case, then indeed the scripts will not be
> able to be executed since the user no longer exists (and thus can not own the 'script' right).
> To fix this, you could recreate the previously deleted user and make
> sure he has the 'script' right.
>
> Please let us know if that helps.
>
> Thanks,
> Eduard
>
> ----------
> [1]
>
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki
> 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
>
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> Scriptright
>
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> <[hidden email]>
> wrote:
>
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > [hidden email]
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > #H
> > Scriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by
> > default we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes
> > about
> this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> (mailto:
> > [hidden email]))<mailto:[hidden email](mailto:
> > [hidden email]))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > it's unusable in this state.
> > >
> > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > of the
> > [velocity] script macro is not allowed. Check the rights of its last
> > author or the parameters if it's rendered from another script.
> >
> > [snip]
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

Eduard Moraru
Keith, have you tried to create a new page with the source [1] of the
content author checking app I mentioned above?

Also, is your user account able to execute scripts? Have you tried creating
a new page with a simple script to test that?

If your user can not execute the scripts he writes, then you could try
enabling the superadmin [2] account and log in with that one in order to
create the content author checking app page (with the mentioned source
code).

We are at a debugging step here, since we can not reproduce what you
describe, from the information you are giving us. I ran an upgrade of a
clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard
without issues, so my conclusion is that there is a problem with your
particular instance's state, probably due to some incomplete upgrade steps.

Since you are the only one with access to your instances, we need more
information of what is going on to find out what went wrong. Alternatively,
you could also re-attempt the upgrade and making sure that, while resolving
any conflicts during the Distribution Wizard's upgrade step, you
include/merge the changes coming from the 7.2 version of the conflicting
documents.


Re things like "$services.localization.render..." there could be 2 causes
here:
1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in
your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an
improper war upgrade [3]?)
2) Missing 'admin.xwiki.installedextensions' translation, but that is
unlikely since it is located in ApplicationResources.properties which is
located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder,
without which your wiki would not be running.

Hope this helps getting to the bottom of this.

-Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
[2]
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
[3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade

On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis <[hidden email]>
wrote:

> Maybe we are not talking about the same thing. None of the scripts work,
> that includes the panel scripts, like My Recent Modifications, Backlinks
> and Recently Modified. Are you saying that the last Author of the that page
> is Author of the panel scripts as well, though those are shown on every
> page??? We don't write or create any velocity scripts - we are only using
> the ones that came with XWiki or installed via Extensions.
>
> Also, the extension managements pages are broken (I sent that in the first
> email that did not go through). Under Extension Manager, Add Extensions is
> listed, but is broken (I think, I'm back on 7.1.2 right now), but the other
> links all are like this:
>
> $services.localization.render
> ('admin.xwiki.installedextensions')
>
> Those definitely do no work.
>
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
> Sent: Monday, October 05, 2015 10:18 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis <[hidden email]>
> wrote:
>
> > "Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences "
> >
> > I suppose - those boxes were not checked, but I checked those boxes
> > manually and it still did not work.
> >
>
> So you are saying that you`ve set the rights of the XWikiAllGroup as in
> the screenshot and you still have issues. Have you tried isolating the
> problem in a new page? Like creating a new page, writing/adding a velocity
> macro (event with some static text content, it does not matter) and then
> saving the page to see if it is executed properly and that you get no error?
>
> How do I figure out what user is the author? How do I change the author of
> > a script?
> >
>
> The last author of a script is the same thing as the last content author
> of the document in which the script is located. If you have problems with
> the scripts inside Main.Welcome (for example), you look at its "Last
> modified by" label, under the page title. That will tell you the user that
> last modified the page. The gotcha here is that the script right (just like
> the programming right) actually checks the last content author of that
> page, so the last user that changed the page's content (not the last user
> that added a comment for example, for that saved the page without changes,
> etc.).
>
> To make it easier, I`ve published this small app [1] that you can install
> with the Extension Manager and check the content author and the status of
> Programming and Script rights on a particular page.
>
> You need to identify who is the "content author" on the documents that
> contain scripts and that fail to work on your setup.
>
> Hope this helps,
> Eduard
>
> ----------
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author
>
>
> >
> > BTW, this is almost every velocity script.
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Monday, October 05, 2015 7:33 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > The point is that you rights configuration (specifically the 'script'
> > right
> > section) for the XWikiAllGroup in Administration should look like in
> > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > right is explicitly given to all users so that the migration/upgrade
> > behaves as before, until you decide otherwise. Please check that the
> > rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted
> > the user that is set as last content author in (most of) your
> > documents. If this is the case, then indeed the scripts will not be
> > able to be executed since the user no longer exists (and thus can not
> own the 'script' right).
> > To fix this, you could recreate the previously deleted user and make
> > sure he has the 'script' right.
> >
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > ----------
> > [1]
> >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki
> > 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> > Scriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > <[hidden email]>
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > [hidden email]
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > > #H
> > > Scriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > default we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes
> > > about
> > this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > (mailto:
> > > [hidden email]))<mailto:[hidden email](mailto:
> > > [hidden email]))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > it's unusable in this state.
> > > >
> > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > of the
> > > [velocity] script macro is not allowed. Check the rights of its last
> > > author or the parameters if it's rendered from another script.
> > >
> > > [snip]
> > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.

This time, I noticed that I get these errors:

Failed to register the wiki component located in the document [Home » AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
Failed to register the wiki component located in the document [Home » Stats » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
Failed to register the wiki component located in the document [Home » Scheduler » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
Failed to register the wiki component located in the document [Home » XWiki » UserDirectoryApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
Failed to register the wiki component located in the document [Home » Blog » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
Failed to register the wiki component located in the document [Home » Panels » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights

I am an administrator - maybe this is the problem?

Keith Davis (214) 906-5183

-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
Sent: Tuesday, October 06, 2015 4:10 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?

Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?

If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).

We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.

Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.


Re things like "$services.localization.render..." there could be 2 causes
here:
1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)
2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.

Hope this helps getting to the bottom of this.

-Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
[2]
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
[3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade

On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis <[hidden email]>
wrote:

> Maybe we are not talking about the same thing. None of the scripts
> work, that includes the panel scripts, like My Recent Modifications,
> Backlinks and Recently Modified. Are you saying that the last Author
> of the that page is Author of the panel scripts as well, though those
> are shown on every page??? We don't write or create any velocity
> scripts - we are only using the ones that came with XWiki or installed via Extensions.
>
> Also, the extension managements pages are broken (I sent that in the
> first email that did not go through). Under Extension Manager, Add
> Extensions is listed, but is broken (I think, I'm back on 7.1.2 right
> now), but the other links all are like this:
>
> $services.localization.render
> ('admin.xwiki.installedextensions')
>
> Those definitely do no work.
>
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard
> Moraru
> Sent: Monday, October 05, 2015 10:18 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> <[hidden email]>
> wrote:
>
> > "Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences "
> >
> > I suppose - those boxes were not checked, but I checked those boxes
> > manually and it still did not work.
> >
>
> So you are saying that you`ve set the rights of the XWikiAllGroup as
> in the screenshot and you still have issues. Have you tried isolating
> the problem in a new page? Like creating a new page, writing/adding a
> velocity macro (event with some static text content, it does not
> matter) and then saving the page to see if it is executed properly and that you get no error?
>
> How do I figure out what user is the author? How do I change the
> author of
> > a script?
> >
>
> The last author of a script is the same thing as the last content
> author of the document in which the script is located. If you have
> problems with the scripts inside Main.Welcome (for example), you look
> at its "Last modified by" label, under the page title. That will tell
> you the user that last modified the page. The gotcha here is that the
> script right (just like the programming right) actually checks the
> last content author of that page, so the last user that changed the
> page's content (not the last user that added a comment for example,
> for that saved the page without changes, etc.).
>
> To make it easier, I`ve published this small app [1] that you can
> install with the Extension Manager and check the content author and
> the status of Programming and Script rights on a particular page.
>
> You need to identify who is the "content author" on the documents that
> contain scripts and that fail to work on your setup.
>
> Hope this helps,
> Eduard
>
> ----------
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Aut
> hor
>
>
> >
> > BTW, this is almost every velocity script.
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Monday, October 05, 2015 7:33 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > The point is that you rights configuration (specifically the 'script'
> > right
> > section) for the XWikiAllGroup in Administration should look like in
> > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > right is explicitly given to all users so that the migration/upgrade
> > behaves as before, until you decide otherwise. Please check that the
> > rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted
> > the user that is set as last content author in (most of) your
> > documents. If this is the case, then indeed the scripts will not be
> > able to be executed since the user no longer exists (and thus can
> > not
> own the 'script' right).
> > To fix this, you could recreate the previously deleted user and make
> > sure he has the 'script' right.
> >
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > ----------
> > [1]
> >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWi
> > ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > #H
> > Scriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > <[hidden email]>
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > [hidden email]
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki
> > > 72
> > > #H
> > > Scriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > default we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes
> > > about
> > this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > (mailto:
> > > [hidden email]))<mailto:[hidden email](mailto:
> > > [hidden email]))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > it's unusable in this state.
> > > >
> > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > of the
> > > [velocity] script macro is not allowed. Check the rights of its
> > > last author or the parameters if it's rendered from another script.
> > >
> > > [snip]
> > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 7:35 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.

This time, I noticed that I get these errors:

Failed to register the wiki component located in the document [Home » AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Stats » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Scheduler » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » XWiki » UserDirectoryApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Blog » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Panels » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights

I am an administrator - maybe this is the problem?

Keith Davis (214) 906-5183

-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
Sent: Tuesday, October 06, 2015 4:10 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?

Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?

If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).

We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.

Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.


Re things like "$services.localization.render..." there could be 2 causes
here:
1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)
2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.

Hope this helps getting to the bottom of this.

-Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
[2]
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
[3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade

On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis <[hidden email]>
wrote:

> Maybe we are not talking about the same thing. None of the scripts
> work, that includes the panel scripts, like My Recent Modifications,
> Backlinks and Recently Modified. Are you saying that the last Author
> of the that page is Author of the panel scripts as well, though those
> are shown on every page??? We don't write or create any velocity
> scripts - we are only using the ones that came with XWiki or installed via Extensions.
>
> Also, the extension managements pages are broken (I sent that in the
> first email that did not go through). Under Extension Manager, Add
> Extensions is listed, but is broken (I think, I'm back on 7.1.2 right
> now), but the other links all are like this:
>
> $services.localization.render
> ('admin.xwiki.installedextensions')
>
> Those definitely do no work.
>
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard
> Moraru
> Sent: Monday, October 05, 2015 10:18 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> <[hidden email]>
> wrote:
>
> > "Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences "
> >
> > I suppose - those boxes were not checked, but I checked those boxes
> > manually and it still did not work.
> >
>
> So you are saying that you`ve set the rights of the XWikiAllGroup as
> in the screenshot and you still have issues. Have you tried isolating
> the problem in a new page? Like creating a new page, writing/adding a
> velocity macro (event with some static text content, it does not
> matter) and then saving the page to see if it is executed properly and that you get no error?
>
> How do I figure out what user is the author? How do I change the
> author of
> > a script?
> >
>
> The last author of a script is the same thing as the last content
> author of the document in which the script is located. If you have
> problems with the scripts inside Main.Welcome (for example), you look
> at its "Last modified by" label, under the page title. That will tell
> you the user that last modified the page. The gotcha here is that the
> script right (just like the programming right) actually checks the
> last content author of that page, so the last user that changed the
> page's content (not the last user that added a comment for example,
> for that saved the page without changes, etc.).
>
> To make it easier, I`ve published this small app [1] that you can
> install with the Extension Manager and check the content author and
> the status of Programming and Script rights on a particular page.
>
> You need to identify who is the "content author" on the documents that
> contain scripts and that fail to work on your setup.
>
> Hope this helps,
> Eduard
>
> ----------
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Aut
> hor
>
>
> >
> > BTW, this is almost every velocity script.
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Monday, October 05, 2015 7:33 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > The point is that you rights configuration (specifically the 'script'
> > right
> > section) for the XWikiAllGroup in Administration should look like in
> > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > right is explicitly given to all users so that the migration/upgrade
> > behaves as before, until you decide otherwise. Please check that the
> > rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted
> > the user that is set as last content author in (most of) your
> > documents. If this is the case, then indeed the scripts will not be
> > able to be executed since the user no longer exists (and thus can
> > not
> own the 'script' right).
> > To fix this, you could recreate the previously deleted user and make
> > sure he has the 'script' right.
> >
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > ----------
> > [1]
> >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWi
> > ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > #H
> > Scriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > <[hidden email]>
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > [hidden email]
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki
> > > 72
> > > #H
> > > Scriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > default we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes
> > > about
> > this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > (mailto:
> > > [hidden email]))<mailto:[hidden email](mailto:
> > > [hidden email]))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > it's unusable in this state.
> > > >
> > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > of the
> > > [velocity] script macro is not allowed. Check the rights of its
> > > last author or the parameters if it's rendered from another script.
> > >
> > > [snip]
> > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
"Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"

How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 7:36 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 7:35 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.

This time, I noticed that I get these errors:

Failed to register the wiki component located in the document [Home » AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Stats » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Scheduler » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » XWiki » UserDirectoryApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Blog » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Panels » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights

I am an administrator - maybe this is the problem?

Keith Davis (214) 906-5183

-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
Sent: Tuesday, October 06, 2015 4:10 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?

Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?

If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).

We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.

Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.


Re things like "$services.localization.render..." there could be 2 causes
here:
1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)
2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.

Hope this helps getting to the bottom of this.

-Eduard

----------
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
[2]
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
[3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade

On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis <[hidden email]>
wrote:

> Maybe we are not talking about the same thing. None of the scripts
> work, that includes the panel scripts, like My Recent Modifications,
> Backlinks and Recently Modified. Are you saying that the last Author
> of the that page is Author of the panel scripts as well, though those
> are shown on every page??? We don't write or create any velocity
> scripts - we are only using the ones that came with XWiki or installed via Extensions.
>
> Also, the extension managements pages are broken (I sent that in the
> first email that did not go through). Under Extension Manager, Add
> Extensions is listed, but is broken (I think, I'm back on 7.1.2 right
> now), but the other links all are like this:
>
> $services.localization.render
> ('admin.xwiki.installedextensions')
>
> Those definitely do no work.
>
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard
> Moraru
> Sent: Monday, October 05, 2015 10:18 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> <[hidden email]>
> wrote:
>
> > "Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences "
> >
> > I suppose - those boxes were not checked, but I checked those boxes
> > manually and it still did not work.
> >
>
> So you are saying that you`ve set the rights of the XWikiAllGroup as
> in the screenshot and you still have issues. Have you tried isolating
> the problem in a new page? Like creating a new page, writing/adding a
> velocity macro (event with some static text content, it does not
> matter) and then saving the page to see if it is executed properly and that you get no error?
>
> How do I figure out what user is the author? How do I change the
> author of
> > a script?
> >
>
> The last author of a script is the same thing as the last content
> author of the document in which the script is located. If you have
> problems with the scripts inside Main.Welcome (for example), you look
> at its "Last modified by" label, under the page title. That will tell
> you the user that last modified the page. The gotcha here is that the
> script right (just like the programming right) actually checks the
> last content author of that page, so the last user that changed the
> page's content (not the last user that added a comment for example,
> for that saved the page without changes, etc.).
>
> To make it easier, I`ve published this small app [1] that you can
> install with the Extension Manager and check the content author and
> the status of Programming and Script rights on a particular page.
>
> You need to identify who is the "content author" on the documents that
> contain scripts and that fail to work on your setup.
>
> Hope this helps,
> Eduard
>
> ----------
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Aut
> hor
>
>
> >
> > BTW, this is almost every velocity script.
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Monday, October 05, 2015 7:33 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard, you might have missed (ignored) the document
> > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > The point is that you rights configuration (specifically the 'script'
> > right
> > section) for the XWikiAllGroup in Administration should look like in
> > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > right is explicitly given to all users so that the migration/upgrade
> > behaves as before, until you decide otherwise. Please check that the
> > rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted
> > the user that is set as last content author in (most of) your
> > documents. If this is the case, then indeed the scripts will not be
> > able to be executed since the user no longer exists (and thus can
> > not
> own the 'script' right).
> > To fix this, you could recreate the previously deleted user and make
> > sure he has the 'script' right.
> >
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > ----------
> > [1]
> >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWi
> > ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > #H
> > Scriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > <[hidden email]>
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > [hidden email]
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki
> > > 72
> > > #H
> > > Scriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > default we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes
> > > about
> > this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > (mailto:
> > > [hidden email]))<mailto:[hidden email](mailto:
> > > [hidden email]))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > it's unusable in this state.
> > > >
> > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > of the
> > > [velocity] script macro is not allowed. Check the rights of its
> > > last author or the parameters if it's rendered from another script.
> > >
> > > [snip]
> > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

vmassol
Administrator
 




On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:

> "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
>  
> How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?

Maybe this can help: http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRights

Thanks
-Vincent

> Keith Davis (214) 906-5183
>  
>  
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Keith Davis
> Sent: Saturday, October 10, 2015 7:36 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>  
> Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
>  
> Keith Davis (214) 906-5183
>  
>  
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Keith Davis
> Sent: Saturday, October 10, 2015 7:35 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>  
> I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
>  
> This time, I noticed that I get these errors:
>  
> Failed to register the wiki component located in the document [Home » AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Stats » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Scheduler » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » XWiki » UserDirectoryApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Blog » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Panels » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
>  
> I am an administrator - maybe this is the problem?
>  
> Keith Davis (214) 906-5183
>  
> -----Original Message-----
> From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
> Sent: Tuesday, October 06, 2015 4:10 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>  
> Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
>  
> Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
>  
> If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
>  
> We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
>  
> Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
>  
>  
> Re things like "$services.localization.render..." there could be 2 causes
> here:
> 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)
> 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
>  
> Hope this helps getting to the bottom of this.
>  
> -Eduard
>  
> ----------
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
> [2]
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
> [3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
>  
> On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis  
> wrote:
>  
> > Maybe we are not talking about the same thing. None of the scripts
> > work, that includes the panel scripts, like My Recent Modifications,
> > Backlinks and Recently Modified. Are you saying that the last Author
> > of the that page is Author of the panel scripts as well, though those
> > are shown on every page??? We don't write or create any velocity
> > scripts - we are only using the ones that came with XWiki or installed via Extensions.
> >
> > Also, the extension managements pages are broken (I sent that in the
> > first email that did not go through). Under Extension Manager, Add
> > Extensions is listed, but is broken (I think, I'm back on 7.1.2 right
> > now), but the other links all are like this:
> >
> > $services.localization.render
> > ('admin.xwiki.installedextensions')
> >
> > Those definitely do no work.
> >
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Monday, October 05, 2015 10:18 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> >  
> > wrote:
> >
> > > "Is there any chance that, while you`ve executed the Distribution
> > > Wizard, you might have missed (ignored) the document
> > XWiki.XWikiPreferences "
> > >
> > > I suppose - those boxes were not checked, but I checked those boxes
> > > manually and it still did not work.
> > >
> >
> > So you are saying that you`ve set the rights of the XWikiAllGroup as
> > in the screenshot and you still have issues. Have you tried isolating
> > the problem in a new page? Like creating a new page, writing/adding a
> > velocity macro (event with some static text content, it does not
> > matter) and then saving the page to see if it is executed properly and that you get no error?
> >
> > How do I figure out what user is the author? How do I change the
> > author of
> > > a script?
> > >
> >
> > The last author of a script is the same thing as the last content
> > author of the document in which the script is located. If you have
> > problems with the scripts inside Main.Welcome (for example), you look
> > at its "Last modified by" label, under the page title. That will tell
> > you the user that last modified the page. The gotcha here is that the
> > script right (just like the programming right) actually checks the
> > last content author of that page, so the last user that changed the
> > page's content (not the last user that added a comment for example,
> > for that saved the page without changes, etc.).
> >
> > To make it easier, I`ve published this small app [1] that you can
> > install with the Extension Manager and check the content author and
> > the status of Programming and Script rights on a particular page.
> >
> > You need to identify who is the "content author" on the documents that
> > contain scripts and that fail to work on your setup.
> >
> > Hope this helps,
> > Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Aut
> > hor
> >
> >
> > >
> > > BTW, this is almost every velocity script.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 7:33 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hello Keith,
> > >
> > > I see 2 possibilities here:
> > >
> > > 1) Is there any chance that, while you`ve executed the Distribution
> > > Wizard, you might have missed (ignored) the document
> > > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > The point is that you rights configuration (specifically the 'script'
> > > right
> > > section) for the XWikiAllGroup in Administration should look like in
> > > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > right is explicitly given to all users so that the migration/upgrade
> > > behaves as before, until you decide otherwise. Please check that the
> > > rights setup is properly upgraded.
> > >
> > > 2) The only other case I can think of is that you might have deleted
> > > the user that is set as last content author in (most of) your
> > > documents. If this is the case, then indeed the scripts will not be
> > > able to be executed since the user no longer exists (and thus can
> > > not
> > own the 'script' right).
> > > To fix this, you could recreate the previously deleted user and make
> > > sure he has the 'script' right.
> > >
> > > Please let us know if that helps.
> > >
> > > Thanks,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > >
> > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWi
> > > ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > [2]
> > >
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > > #H
> > > Scriptright
> > >
> > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > >  
> > > wrote:
> > >
> > > > Yes, I did execute the Distribution Wizard.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > [hidden email]
> > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > To: XWiki Users
> > > > Cc: Keith Davis
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hi Keith,
> > > >
> > > > See
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki
> > > > 72
> > > > #H
> > > > Scriptright
> > > >
> > > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > > default we give Script Rights to users).
> > > >
> > > > @Edy: I think we need some additional info in the Release Notes
> > > > about
> > > this.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > > (mailto:
> > > > [hidden email]))> > > > [hidden email]))> wrote:
> > > >
> > > > > I tried to send this once, but it looks like it did not go through.
> > > > >
> > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > > the
> > > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > > it's unusable in this state.
> > > > >
> > > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > > of the
> > > > [velocity] script macro is not allowed. Check the rights of its
> > > > last author or the parameters if it's rendered from another script.
> > > >
> > > > [snip]
> > > >
> > > > _______________________________________________
> > > > users mailing list
> > > > [hidden email]
> > > > http://lists.xwiki.org/mailman/listinfo/users
> > > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

vmassol
Administrator

On 10 Oct 2015 at 14:47:10, [hidden email] ([hidden email](mailto:[hidden email])) wrote:

> On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:
>  
> > "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
> >
> > How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?  
>  
> Maybe this can help: http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRights 

See also http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HPermissions

Thanks
-Vincent

> Thanks  
> -Vincent
>  
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith Davis
> > Sent: Saturday, October 10, 2015 7:36 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith Davis
> > Sent: Saturday, October 10, 2015 7:35 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
> >
> > This time, I noticed that I get these errors:
> >
> > Failed to register the wiki component located in the document [Home » AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Stats » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Scheduler » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » XWiki » UserDirectoryApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Blog » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki component located in the document [Home » Panels » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights
> >
> > I am an administrator - maybe this is the problem?
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard Moraru
> > Sent: Tuesday, October 06, 2015 4:10 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
> >
> > Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
> >
> > If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
> >
> > We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
> >
> > Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
> >
> >
> > Re things like "$services.localization.render..." there could be 2 causes
> > here:
> > 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)
> > 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
> >
> > Hope this helps getting to the bottom of this.
> >
> > -Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author#HSource
> > [2]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSuperadminaccount
> > [3] http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
> >
> > On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis
> > wrote:
> >
> > > Maybe we are not talking about the same thing. None of the scripts
> > > work, that includes the panel scripts, like My Recent Modifications,
> > > Backlinks and Recently Modified. Are you saying that the last Author
> > > of the that page is Author of the panel scripts as well, though those
> > > are shown on every page??? We don't write or create any velocity
> > > scripts - we are only using the ones that came with XWiki or installed via Extensions.
> > >
> > > Also, the extension managements pages are broken (I sent that in the
> > > first email that did not go through). Under Extension Manager, Add
> > > Extensions is listed, but is broken (I think, I'm back on 7.1.2 right
> > > now), but the other links all are like this:
> > >
> > > $services.localization.render
> > > ('admin.xwiki.installedextensions')
> > >
> > > Those definitely do no work.
> > >
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 10:18 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> > >
> > > wrote:
> > >
> > > > "Is there any chance that, while you`ve executed the Distribution
> > > > Wizard, you might have missed (ignored) the document
> > > XWiki.XWikiPreferences "
> > > >
> > > > I suppose - those boxes were not checked, but I checked those boxes
> > > > manually and it still did not work.
> > > >
> > >
> > > So you are saying that you`ve set the rights of the XWikiAllGroup as
> > > in the screenshot and you still have issues. Have you tried isolating
> > > the problem in a new page? Like creating a new page, writing/adding a
> > > velocity macro (event with some static text content, it does not
> > > matter) and then saving the page to see if it is executed properly and that you get no error?
> > >
> > > How do I figure out what user is the author? How do I change the
> > > author of
> > > > a script?
> > > >
> > >
> > > The last author of a script is the same thing as the last content
> > > author of the document in which the script is located. If you have
> > > problems with the scripts inside Main.Welcome (for example), you look
> > > at its "Last modified by" label, under the page title. That will tell
> > > you the user that last modified the page. The gotcha here is that the
> > > script right (just like the programming right) actually checks the
> > > last content author of that page, so the last user that changed the
> > > page's content (not the last user that added a comment for example,
> > > for that saved the page without changes, etc.).
> > >
> > > To make it easier, I`ve published this small app [1] that you can
> > > install with the Extension Manager and check the content author and
> > > the status of Programming and Script rights on a particular page.
> > >
> > > You need to identify who is the "content author" on the documents that
> > > contain scripts and that fail to work on your setup.
> > >
> > > Hope this helps,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Aut
> > > hor
> > >
> > >
> > > >
> > > > BTW, this is almost every velocity script.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > > Moraru
> > > > Sent: Monday, October 05, 2015 7:33 AM
> > > > To: XWiki Users
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hello Keith,
> > > >
> > > > I see 2 possibilities here:
> > > >
> > > > 1) Is there any chance that, while you`ve executed the Distribution
> > > > Wizard, you might have missed (ignored) the document
> > > > XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > > The point is that you rights configuration (specifically the 'script'
> > > > right
> > > > section) for the XWikiAllGroup in Administration should look like in
> > > > this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > > right is explicitly given to all users so that the migration/upgrade
> > > > behaves as before, until you decide otherwise. Please check that the
> > > > rights setup is properly upgraded.
> > > >
> > > > 2) The only other case I can think of is that you might have deleted
> > > > the user that is set as last content author in (most of) your
> > > > documents. If this is the case, then indeed the scripts will not be
> > > > able to be executed since the user no longer exists (and thus can
> > > > not
> > > own the 'script' right).
> > > > To fix this, you could recreate the previously deleted user and make
> > > > sure he has the 'script' right.
> > > >
> > > > Please let us know if that helps.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > ----------
> > > > [1]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWi
> > > > ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > > [2]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72
> > > > #H
> > > > Scriptright
> > > >
> > > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > >
> > > > wrote:
> > > >
> > > > > Yes, I did execute the Distribution Wizard.
> > > > >
> > > > > Keith Davis (214) 906-5183
> > > > >
> > > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > > [hidden email]
> > > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > > To: XWiki Users
> > > > > Cc: Keith Davis
> > > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > See
> > > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki
> > > > > 72
> > > > > #H
> > > > > Scriptright
> > > > >
> > > > > Are you sure you’ve executed the Distribution Wizard? (because by
> > > > > default we give Script Rights to users).
> > > > >
> > > > > @Edy: I think we need some additional info in the Release Notes
> > > > > about
> > > > this.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > On 5 Oct 2015 at 13:25:08, Keith Davis ([hidden email]
> > > > (mailto:
> > > > > [hidden email]))
> > > > > [hidden email]))> wrote:
> > > > >
> > > > > > I tried to send this once, but it looks like it did not go through.
> > > > > >
> > > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of
> > > > > > the
> > > > > Velocity scripts work. I ended up rolling back to 7.1.2, because
> > > > > it's unusable in this state.
> > > > > >
> > > > > > org.xwiki.rendering.macro.MacroExecutionException: The execution
> > > > > > of the
> > > > > [velocity] script macro is not allowed. Check the rights of its
> > > > > last author or the parameters if it's rendered from another script.
> > > > >
> > > > > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
I tried logging in as admin and doing the Distribution Wizard, but now it won't come up. Is there a way to force that?

Keith Davis (214) 906-5183


-----Original Message-----
From: Vincent Massol [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Saturday, October 10, 2015 8:06 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors


On 10 Oct 2015 at 14:47:10, [hidden email] ([hidden email](mailto:[hidden email])) wrote:

> On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:
>  
> > "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
> >
> > How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?  
>  
> Maybe this can help:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRig
> hts

See also http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HPermissions

Thanks
-Vincent

> Thanks
> -Vincent
>  
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:36 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:35 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
> >
> > This time, I noticed that I get these errors:
> >
> > Failed to register the wiki component located in the document [Home
> > » AppWithinMinutes » ApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Stats »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Scheduler » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights Failed to register the wiki component located in the document
> > [Home » XWiki » UserDirectoryApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Blog »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Panels » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights
> >
> > I am an administrator - maybe this is the problem?
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Tuesday, October 06, 2015 4:10 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
> >
> > Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
> >
> > If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
> >
> > We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
> >
> > Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
> >
> >
> > Re things like "$services.localization.render..." there could be 2
> > causes
> > here:
> > 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar
> > files in your webapps/xwiki/WEB-INF/lib installation folder (maybe
> > due to an improper war upgrade [3]?)
> > 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
> >
> > Hope this helps getting to the bottom of this.
> >
> > -Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+A
> > uthor#HSource
> > [2]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSupera
> > dminaccount [3]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
> >
> > On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis
> > wrote:
> >
> > > Maybe we are not talking about the same thing. None of the scripts
> > > work, that includes the panel scripts, like My Recent
> > > Modifications, Backlinks and Recently Modified. Are you saying
> > > that the last Author of the that page is Author of the panel
> > > scripts as well, though those are shown on every page??? We don't
> > > write or create any velocity scripts - we are only using the ones that came with XWiki or installed via Extensions.
> > >
> > > Also, the extension managements pages are broken (I sent that in
> > > the first email that did not go through). Under Extension Manager,
> > > Add Extensions is listed, but is broken (I think, I'm back on
> > > 7.1.2 right now), but the other links all are like this:
> > >
> > > $services.localization.render
> > > ('admin.xwiki.installedextensions')
> > >
> > > Those definitely do no work.
> > >
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 10:18 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> > >
> > > wrote:
> > >
> > > > "Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document
> > > XWiki.XWikiPreferences "
> > > >
> > > > I suppose - those boxes were not checked, but I checked those
> > > > boxes manually and it still did not work.
> > > >
> > >
> > > So you are saying that you`ve set the rights of the XWikiAllGroup
> > > as in the screenshot and you still have issues. Have you tried
> > > isolating the problem in a new page? Like creating a new page,
> > > writing/adding a velocity macro (event with some static text
> > > content, it does not
> > > matter) and then saving the page to see if it is executed properly and that you get no error?
> > >
> > > How do I figure out what user is the author? How do I change the
> > > author of
> > > > a script?
> > > >
> > >
> > > The last author of a script is the same thing as the last content
> > > author of the document in which the script is located. If you have
> > > problems with the scripts inside Main.Welcome (for example), you
> > > look at its "Last modified by" label, under the page title. That
> > > will tell you the user that last modified the page. The gotcha
> > > here is that the script right (just like the programming right)
> > > actually checks the last content author of that page, so the last
> > > user that changed the page's content (not the last user that added
> > > a comment for example, for that saved the page without changes, etc.).
> > >
> > > To make it easier, I`ve published this small app [1] that you can
> > > install with the Extension Manager and check the content author
> > > and the status of Programming and Script rights on a particular page.
> > >
> > > You need to identify who is the "content author" on the documents
> > > that contain scripts and that fail to work on your setup.
> > >
> > > Hope this helps,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content
> > > +Aut
> > > hor
> > >
> > >
> > > >
> > > > BTW, this is almost every velocity script.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > > Moraru
> > > > Sent: Monday, October 05, 2015 7:33 AM
> > > > To: XWiki Users
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hello Keith,
> > > >
> > > > I see 2 possibilities here:
> > > >
> > > > 1) Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > > The point is that you rights configuration (specifically the 'script'
> > > > right
> > > > section) for the XWikiAllGroup in Administration should look
> > > > like in this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > > right is explicitly given to all users so that the
> > > > migration/upgrade behaves as before, until you decide otherwise.
> > > > Please check that the rights setup is properly upgraded.
> > > >
> > > > 2) The only other case I can think of is that you might have
> > > > deleted the user that is set as last content author in (most of)
> > > > your documents. If this is the case, then indeed the scripts
> > > > will not be able to be executed since the user no longer exists
> > > > (and thus can not
> > > own the 'script' right).
> > > > To fix this, you could recreate the previously deleted user and
> > > > make sure he has the 'script' right.
> > > >
> > > > Please let us know if that helps.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > ----------
> > > > [1]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNote
> > > > sXWi ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > > [2]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWi
> > > > ki72
> > > > #H
> > > > Scriptright
> > > >
> > > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > >
> > > > wrote:
> > > >
> > > > > Yes, I did execute the Distribution Wizard.
> > > > >
> > > > > Keith Davis (214) 906-5183
> > > > >
> > > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > > [hidden email]
> > > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > > To: XWiki Users
> > > > > Cc: Keith Davis
> > > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > See
> > > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesX
> > > > > Wiki
> > > > > 72
> > > > > #H
> > > > > Scriptright
> > > > >
> > > > > Are you sure you’ve executed the Distribution Wizard? (because
> > > > > by default we give Script Rights to users).
> > > > >
> > > > > @Edy: I think we need some additional info in the Release
> > > > > Notes about
> > > > this.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > On 5 Oct 2015 at 13:25:08, Keith Davis
> > > > > ([hidden email]
> > > > (mailto:
> > > > > [hidden email]))
> > > > > [hidden email]))> wrote:
> > > > >
> > > > > > I tried to send this once, but it looks like it did not go through.
> > > > > >
> > > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none
> > > > > > of the
> > > > > Velocity scripts work. I ended up rolling back to 7.1.2,
> > > > > because it's unusable in this state.
> > > > > >
> > > > > > org.xwiki.rendering.macro.MacroExecutionException: The
> > > > > > execution of the
> > > > > [velocity] script macro is not allowed. Check the rights of
> > > > > its last author or the parameters if it's rendered from another script.
> > > > >
> > > > > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
This is so broken. Even when I go to Edit a page, the Title shows this:

$msg.get("xe.home.title")

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:12 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

I tried logging in as admin and doing the Distribution Wizard, but now it won't come up. Is there a way to force that?

Keith Davis (214) 906-5183


-----Original Message-----
From: Vincent Massol [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Saturday, October 10, 2015 8:06 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors


On 10 Oct 2015 at 14:47:10, [hidden email] ([hidden email](mailto:[hidden email])) wrote:

> On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:
>  
> > "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
> >
> > How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?  
>  
> Maybe this can help:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRig
> hts

See also http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HPermissions

Thanks
-Vincent

> Thanks
> -Vincent
>  
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:36 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:35 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
> >
> > This time, I noticed that I get these errors:
> >
> > Failed to register the wiki component located in the document [Home
> > » AppWithinMinutes » ApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Stats »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Scheduler » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights Failed to register the wiki component located in the document
> > [Home » XWiki » UserDirectoryApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Blog »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Panels » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights
> >
> > I am an administrator - maybe this is the problem?
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Tuesday, October 06, 2015 4:10 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
> >
> > Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
> >
> > If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
> >
> > We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
> >
> > Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
> >
> >
> > Re things like "$services.localization.render..." there could be 2
> > causes
> > here:
> > 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar
> > files in your webapps/xwiki/WEB-INF/lib installation folder (maybe
> > due to an improper war upgrade [3]?)
> > 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
> >
> > Hope this helps getting to the bottom of this.
> >
> > -Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+A
> > uthor#HSource
> > [2]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSupera
> > dminaccount [3]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
> >
> > On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis
> > wrote:
> >
> > > Maybe we are not talking about the same thing. None of the scripts
> > > work, that includes the panel scripts, like My Recent
> > > Modifications, Backlinks and Recently Modified. Are you saying
> > > that the last Author of the that page is Author of the panel
> > > scripts as well, though those are shown on every page??? We don't
> > > write or create any velocity scripts - we are only using the ones that came with XWiki or installed via Extensions.
> > >
> > > Also, the extension managements pages are broken (I sent that in
> > > the first email that did not go through). Under Extension Manager,
> > > Add Extensions is listed, but is broken (I think, I'm back on
> > > 7.1.2 right now), but the other links all are like this:
> > >
> > > $services.localization.render
> > > ('admin.xwiki.installedextensions')
> > >
> > > Those definitely do no work.
> > >
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 10:18 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> > >
> > > wrote:
> > >
> > > > "Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document
> > > XWiki.XWikiPreferences "
> > > >
> > > > I suppose - those boxes were not checked, but I checked those
> > > > boxes manually and it still did not work.
> > > >
> > >
> > > So you are saying that you`ve set the rights of the XWikiAllGroup
> > > as in the screenshot and you still have issues. Have you tried
> > > isolating the problem in a new page? Like creating a new page,
> > > writing/adding a velocity macro (event with some static text
> > > content, it does not
> > > matter) and then saving the page to see if it is executed properly and that you get no error?
> > >
> > > How do I figure out what user is the author? How do I change the
> > > author of
> > > > a script?
> > > >
> > >
> > > The last author of a script is the same thing as the last content
> > > author of the document in which the script is located. If you have
> > > problems with the scripts inside Main.Welcome (for example), you
> > > look at its "Last modified by" label, under the page title. That
> > > will tell you the user that last modified the page. The gotcha
> > > here is that the script right (just like the programming right)
> > > actually checks the last content author of that page, so the last
> > > user that changed the page's content (not the last user that added
> > > a comment for example, for that saved the page without changes, etc.).
> > >
> > > To make it easier, I`ve published this small app [1] that you can
> > > install with the Extension Manager and check the content author
> > > and the status of Programming and Script rights on a particular page.
> > >
> > > You need to identify who is the "content author" on the documents
> > > that contain scripts and that fail to work on your setup.
> > >
> > > Hope this helps,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content
> > > +Aut
> > > hor
> > >
> > >
> > > >
> > > > BTW, this is almost every velocity script.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > > Moraru
> > > > Sent: Monday, October 05, 2015 7:33 AM
> > > > To: XWiki Users
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hello Keith,
> > > >
> > > > I see 2 possibilities here:
> > > >
> > > > 1) Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > > The point is that you rights configuration (specifically the 'script'
> > > > right
> > > > section) for the XWikiAllGroup in Administration should look
> > > > like in this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > > right is explicitly given to all users so that the
> > > > migration/upgrade behaves as before, until you decide otherwise.
> > > > Please check that the rights setup is properly upgraded.
> > > >
> > > > 2) The only other case I can think of is that you might have
> > > > deleted the user that is set as last content author in (most of)
> > > > your documents. If this is the case, then indeed the scripts
> > > > will not be able to be executed since the user no longer exists
> > > > (and thus can not
> > > own the 'script' right).
> > > > To fix this, you could recreate the previously deleted user and
> > > > make sure he has the 'script' right.
> > > >
> > > > Please let us know if that helps.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > ----------
> > > > [1]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNote
> > > > sXWi ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > > [2]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWi
> > > > ki72
> > > > #H
> > > > Scriptright
> > > >
> > > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > >
> > > > wrote:
> > > >
> > > > > Yes, I did execute the Distribution Wizard.
> > > > >
> > > > > Keith Davis (214) 906-5183
> > > > >
> > > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > > [hidden email]
> > > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > > To: XWiki Users
> > > > > Cc: Keith Davis
> > > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > See
> > > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesX
> > > > > Wiki
> > > > > 72
> > > > > #H
> > > > > Scriptright
> > > > >
> > > > > Are you sure you’ve executed the Distribution Wizard? (because
> > > > > by default we give Script Rights to users).
> > > > >
> > > > > @Edy: I think we need some additional info in the Release
> > > > > Notes about
> > > > this.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > On 5 Oct 2015 at 13:25:08, Keith Davis
> > > > > ([hidden email]
> > > > (mailto:
> > > > > [hidden email]))
> > > > > [hidden email]))> wrote:
> > > > >
> > > > > > I tried to send this once, but it looks like it did not go through.
> > > > > >
> > > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none
> > > > > > of the
> > > > > Velocity scripts work. I ended up rolling back to 7.1.2,
> > > > > because it's unusable in this state.
> > > > > >
> > > > > > org.xwiki.rendering.macro.MacroExecutionException: The
> > > > > > execution of the
> > > > > [velocity] script macro is not allowed. Check the rights of
> > > > > its last author or the parameters if it's rendered from another script.
> > > > >
> > > > > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
Ran the DW as the admin user, still getting these:

Failed to register the wiki component located in the document [Home AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:14 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

This is so broken. Even when I go to Edit a page, the Title shows this:

$msg.get("xe.home.title")

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:12 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

I tried logging in as admin and doing the Distribution Wizard, but now it won't come up. Is there a way to force that?

Keith Davis (214) 906-5183


-----Original Message-----
From: Vincent Massol [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Saturday, October 10, 2015 8:06 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors


On 10 Oct 2015 at 14:47:10, [hidden email] ([hidden email](mailto:[hidden email])) wrote:

> On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:
>  
> > "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
> >
> > How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?  
>  
> Maybe this can help:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRig
> hts

See also http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HPermissions

Thanks
-Vincent

> Thanks
> -Vincent
>  
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:36 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:35 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
> >
> > This time, I noticed that I get these errors:
> >
> > Failed to register the wiki component located in the document [Home
> > » AppWithinMinutes » ApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Stats »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Scheduler » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights Failed to register the wiki component located in the document
> > [Home » XWiki » UserDirectoryApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Blog »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Panels » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights
> >
> > I am an administrator - maybe this is the problem?
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Tuesday, October 06, 2015 4:10 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
> >
> > Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
> >
> > If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
> >
> > We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
> >
> > Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
> >
> >
> > Re things like "$services.localization.render..." there could be 2
> > causes
> > here:
> > 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar
> > files in your webapps/xwiki/WEB-INF/lib installation folder (maybe
> > due to an improper war upgrade [3]?)
> > 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
> >
> > Hope this helps getting to the bottom of this.
> >
> > -Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+A
> > uthor#HSource
> > [2]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSupera
> > dminaccount [3]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
> >
> > On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis
> > wrote:
> >
> > > Maybe we are not talking about the same thing. None of the scripts
> > > work, that includes the panel scripts, like My Recent
> > > Modifications, Backlinks and Recently Modified. Are you saying
> > > that the last Author of the that page is Author of the panel
> > > scripts as well, though those are shown on every page??? We don't
> > > write or create any velocity scripts - we are only using the ones that came with XWiki or installed via Extensions.
> > >
> > > Also, the extension managements pages are broken (I sent that in
> > > the first email that did not go through). Under Extension Manager,
> > > Add Extensions is listed, but is broken (I think, I'm back on
> > > 7.1.2 right now), but the other links all are like this:
> > >
> > > $services.localization.render
> > > ('admin.xwiki.installedextensions')
> > >
> > > Those definitely do no work.
> > >
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 10:18 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> > >
> > > wrote:
> > >
> > > > "Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document
> > > XWiki.XWikiPreferences "
> > > >
> > > > I suppose - those boxes were not checked, but I checked those
> > > > boxes manually and it still did not work.
> > > >
> > >
> > > So you are saying that you`ve set the rights of the XWikiAllGroup
> > > as in the screenshot and you still have issues. Have you tried
> > > isolating the problem in a new page? Like creating a new page,
> > > writing/adding a velocity macro (event with some static text
> > > content, it does not
> > > matter) and then saving the page to see if it is executed properly and that you get no error?
> > >
> > > How do I figure out what user is the author? How do I change the
> > > author of
> > > > a script?
> > > >
> > >
> > > The last author of a script is the same thing as the last content
> > > author of the document in which the script is located. If you have
> > > problems with the scripts inside Main.Welcome (for example), you
> > > look at its "Last modified by" label, under the page title. That
> > > will tell you the user that last modified the page. The gotcha
> > > here is that the script right (just like the programming right)
> > > actually checks the last content author of that page, so the last
> > > user that changed the page's content (not the last user that added
> > > a comment for example, for that saved the page without changes, etc.).
> > >
> > > To make it easier, I`ve published this small app [1] that you can
> > > install with the Extension Manager and check the content author
> > > and the status of Programming and Script rights on a particular page.
> > >
> > > You need to identify who is the "content author" on the documents
> > > that contain scripts and that fail to work on your setup.
> > >
> > > Hope this helps,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content
> > > +Aut
> > > hor
> > >
> > >
> > > >
> > > > BTW, this is almost every velocity script.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > > Moraru
> > > > Sent: Monday, October 05, 2015 7:33 AM
> > > > To: XWiki Users
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hello Keith,
> > > >
> > > > I see 2 possibilities here:
> > > >
> > > > 1) Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > > The point is that you rights configuration (specifically the 'script'
> > > > right
> > > > section) for the XWikiAllGroup in Administration should look
> > > > like in this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > > right is explicitly given to all users so that the
> > > > migration/upgrade behaves as before, until you decide otherwise.
> > > > Please check that the rights setup is properly upgraded.
> > > >
> > > > 2) The only other case I can think of is that you might have
> > > > deleted the user that is set as last content author in (most of)
> > > > your documents. If this is the case, then indeed the scripts
> > > > will not be able to be executed since the user no longer exists
> > > > (and thus can not
> > > own the 'script' right).
> > > > To fix this, you could recreate the previously deleted user and
> > > > make sure he has the 'script' right.
> > > >
> > > > Please let us know if that helps.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > ----------
> > > > [1]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNote
> > > > sXWi ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > > [2]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWi
> > > > ki72
> > > > #H
> > > > Scriptright
> > > >
> > > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > >
> > > > wrote:
> > > >
> > > > > Yes, I did execute the Distribution Wizard.
> > > > >
> > > > > Keith Davis (214) 906-5183
> > > > >
> > > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > > [hidden email]
> > > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > > To: XWiki Users
> > > > > Cc: Keith Davis
> > > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > See
> > > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesX
> > > > > Wiki
> > > > > 72
> > > > > #H
> > > > > Scriptright
> > > > >
> > > > > Are you sure you’ve executed the Distribution Wizard? (because
> > > > > by default we give Script Rights to users).
> > > > >
> > > > > @Edy: I think we need some additional info in the Release
> > > > > Notes about
> > > > this.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > On 5 Oct 2015 at 13:25:08, Keith Davis
> > > > > ([hidden email]
> > > > (mailto:
> > > > > [hidden email]))
> > > > > [hidden email]))> wrote:
> > > > >
> > > > > > I tried to send this once, but it looks like it did not go through.
> > > > > >
> > > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none
> > > > > > of the
> > > > > Velocity scripts work. I ended up rolling back to 7.1.2,
> > > > > because it's unusable in this state.
> > > > > >
> > > > > > org.xwiki.rendering.macro.MacroExecutionException: The
> > > > > > execution of the
> > > > > [velocity] script macro is not allowed. Check the rights of
> > > > > its last author or the parameters if it's rendered from another script.
> > > > >
> > > > > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XWiki 7.2 - Velocity Script Errors

laurin1
" Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar files in your webapps/xwiki/WEB-INF/lib installation folder (maybe due to an improper war upgrade [3]?)"

I have 7 of these in the lib folder.

" Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running."

I have these 2, but no "xwiki-platform-oldcore-7.2.jar" file.

xwiki-platform-legacy-oldcore-7.2.jar
xwiki-platform-filter-instance-oldcore-7.2.jar

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:24 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Ran the DW as the admin user, still getting these:

Failed to register the wiki component located in the document [Home AppWithinMinutes » ApplicationsPanelEntry]: WikiComponentException: Registering UI extensions at wiki level requires wiki administration rights Failed to register the wiki

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:14 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

This is so broken. Even when I go to Edit a page, the Title shows this:

$msg.get("xe.home.title")

Keith Davis (214) 906-5183


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Keith Davis
Sent: Saturday, October 10, 2015 8:12 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

I tried logging in as admin and doing the Distribution Wizard, but now it won't come up. Is there a way to force that?

Keith Davis (214) 906-5183


-----Original Message-----
From: Vincent Massol [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Saturday, October 10, 2015 8:06 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors


On 10 Oct 2015 at 14:47:10, [hidden email] ([hidden email](mailto:[hidden email])) wrote:

> On 10 Oct 2015 at 14:41:01, Keith Davis ([hidden email](mailto:[hidden email])) wrote:
>  
> > "Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?"
> >
> > How do I do that? Is there a simple script that I can use? I have not written any velocity scripts on my own?  
>  
> Maybe this can help:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro#HRig
> hts

See also http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HPermissions

Thanks
-Vincent

> Thanks
> -Vincent
>  
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:36 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Scrolling through that list, I found a bunch more of those same errors. Why does it not think I am an administrator?
> >
> > Keith Davis (214) 906-5183
> >
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Keith
> > Davis
> > Sent: Saturday, October 10, 2015 7:35 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > I finally got a chance to work on this today. I switched back to XWiki 7.2 and I got the Distribution Wizard interface telling me that the 7.1.2 UI is invalid and to upgrade (again). Is that supposed to happen? I never did anything to "downgrade" the UI.
> >
> > This time, I noticed that I get these errors:
> >
> > Failed to register the wiki component located in the document [Home
> > » AppWithinMinutes » ApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Stats »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Scheduler » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights Failed to register the wiki component located in the document
> > [Home » XWiki » UserDirectoryApplicationsPanelEntry]:
> > WikiComponentException: Registering UI extensions at wiki level
> > requires wiki administration rights Failed to register the wiki
> > component located in the document [Home » Blog »
> > ApplicationsPanelEntry]: WikiComponentException: Registering UI
> > extensions at wiki level requires wiki administration rights Failed
> > to register the wiki component located in the document [Home »
> > Panels » ApplicationsPanelEntry]: WikiComponentException:
> > Registering UI extensions at wiki level requires wiki administration
> > rights
> >
> > I am an administrator - maybe this is the problem?
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > Moraru
> > Sent: Tuesday, October 06, 2015 4:10 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Keith, have you tried to create a new page with the source [1] of the content author checking app I mentioned above?
> >
> > Also, is your user account able to execute scripts? Have you tried creating a new page with a simple script to test that?
> >
> > If your user can not execute the scripts he writes, then you could try enabling the superadmin [2] account and log in with that one in order to create the content author checking app page (with the mentioned source code).
> >
> > We are at a debugging step here, since we can not reproduce what you describe, from the information you are giving us. I ran an upgrade of a clean 7.1.2 instance to a 7.2 version, through the Distribution Wizard without issues, so my conclusion is that there is a problem with your particular instance's state, probably due to some incomplete upgrade steps.
> >
> > Since you are the only one with access to your instances, we need more information of what is going on to find out what went wrong. Alternatively, you could also re-attempt the upgrade and making sure that, while resolving any conflicts during the Distribution Wizard's upgrade step, you include/merge the changes coming from the 7.2 version of the conflicting documents.
> >
> >
> > Re things like "$services.localization.render..." there could be 2
> > causes
> > here:
> > 1) Missing xwiki-platform-localization-(script/api/etc.)-7.2.jar
> > files in your webapps/xwiki/WEB-INF/lib installation folder (maybe
> > due to an improper war upgrade [3]?)
> > 2) Missing 'admin.xwiki.installedextensions' translation, but that is unlikely since it is located in ApplicationResources.properties which is located in xwiki-platform-oldcore-7.2.jar in your WEB-INF/lib folder, without which your wiki would not be running.
> >
> > Hope this helps getting to the bottom of this.
> >
> > -Eduard
> >
> > ----------
> > [1]
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+A
> > uthor#HSource
> > [2]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HSupera
> > dminaccount [3]
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
> >
> > On Mon, Oct 5, 2015 at 6:45 PM, Keith Davis
> > wrote:
> >
> > > Maybe we are not talking about the same thing. None of the scripts
> > > work, that includes the panel scripts, like My Recent
> > > Modifications, Backlinks and Recently Modified. Are you saying
> > > that the last Author of the that page is Author of the panel
> > > scripts as well, though those are shown on every page??? We don't
> > > write or create any velocity scripts - we are only using the ones that came with XWiki or installed via Extensions.
> > >
> > > Also, the extension managements pages are broken (I sent that in
> > > the first email that did not go through). Under Extension Manager,
> > > Add Extensions is listed, but is broken (I think, I'm back on
> > > 7.1.2 right now), but the other links all are like this:
> > >
> > > $services.localization.render
> > > ('admin.xwiki.installedextensions')
> > >
> > > Those definitely do no work.
> > >
> > >
> > > Keith Davis (214) 906-5183
> > >
> > >
> > > -----Original Message-----
> > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > Moraru
> > > Sent: Monday, October 05, 2015 10:18 AM
> > > To: XWiki Users
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis
> > >
> > > wrote:
> > >
> > > > "Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document
> > > XWiki.XWikiPreferences "
> > > >
> > > > I suppose - those boxes were not checked, but I checked those
> > > > boxes manually and it still did not work.
> > > >
> > >
> > > So you are saying that you`ve set the rights of the XWikiAllGroup
> > > as in the screenshot and you still have issues. Have you tried
> > > isolating the problem in a new page? Like creating a new page,
> > > writing/adding a velocity macro (event with some static text
> > > content, it does not
> > > matter) and then saving the page to see if it is executed properly and that you get no error?
> > >
> > > How do I figure out what user is the author? How do I change the
> > > author of
> > > > a script?
> > > >
> > >
> > > The last author of a script is the same thing as the last content
> > > author of the document in which the script is located. If you have
> > > problems with the scripts inside Main.Welcome (for example), you
> > > look at its "Last modified by" label, under the page title. That
> > > will tell you the user that last modified the page. The gotcha
> > > here is that the script right (just like the programming right)
> > > actually checks the last content author of that page, so the last
> > > user that changed the page's content (not the last user that added
> > > a comment for example, for that saved the page without changes, etc.).
> > >
> > > To make it easier, I`ve published this small app [1] that you can
> > > install with the Extension Manager and check the content author
> > > and the status of Programming and Script rights on a particular page.
> > >
> > > You need to identify who is the "content author" on the documents
> > > that contain scripts and that fail to work on your setup.
> > >
> > > Hope this helps,
> > > Eduard
> > >
> > > ----------
> > > [1]
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content
> > > +Aut
> > > hor
> > >
> > >
> > > >
> > > > BTW, this is almost every velocity script.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: users [mailto:[hidden email]] On Behalf Of Eduard
> > > > Moraru
> > > > Sent: Monday, October 05, 2015 7:33 AM
> > > > To: XWiki Users
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hello Keith,
> > > >
> > > > I see 2 possibilities here:
> > > >
> > > > 1) Is there any chance that, while you`ve executed the
> > > > Distribution Wizard, you might have missed (ignored) the
> > > > document XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> > > > The point is that you rights configuration (specifically the 'script'
> > > > right
> > > > section) for the XWikiAllGroup in Administration should look
> > > > like in this screenshot [1] (from the 7.2 release notes [2]). The 'script'
> > > > right is explicitly given to all users so that the
> > > > migration/upgrade behaves as before, until you decide otherwise.
> > > > Please check that the rights setup is properly upgraded.
> > > >
> > > > 2) The only other case I can think of is that you might have
> > > > deleted the user that is set as last content author in (most of)
> > > > your documents. If this is the case, then indeed the scripts
> > > > will not be able to be executed since the user no longer exists
> > > > (and thus can not
> > > own the 'script' right).
> > > > To fix this, you could recreate the previously deleted user and
> > > > make sure he has the 'script' right.
> > > >
> > > > Please let us know if that helps.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > ----------
> > > > [1]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNote
> > > > sXWi ki 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > > [2]
> > > >
> > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWi
> > > > ki72
> > > > #H
> > > > Scriptright
> > > >
> > > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > >
> > > > wrote:
> > > >
> > > > > Yes, I did execute the Distribution Wizard.
> > > > >
> > > > > Keith Davis (214) 906-5183
> > > > >
> > > > > From: Vincent Massol [mailto:[hidden email]] On Behalf Of
> > > > > [hidden email]
> > > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > > To: XWiki Users
> > > > > Cc: Keith Davis
> > > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > See
> > > > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesX
> > > > > Wiki
> > > > > 72
> > > > > #H
> > > > > Scriptright
> > > > >
> > > > > Are you sure you’ve executed the Distribution Wizard? (because
> > > > > by default we give Script Rights to users).
> > > > >
> > > > > @Edy: I think we need some additional info in the Release
> > > > > Notes about
> > > > this.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > On 5 Oct 2015 at 13:25:08, Keith Davis
> > > > > ([hidden email]
> > > > (mailto:
> > > > > [hidden email]))
> > > > > [hidden email]))> wrote:
> > > > >
> > > > > > I tried to send this once, but it looks like it did not go through.
> > > > > >
> > > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none
> > > > > > of the
> > > > > Velocity scripts work. I ended up rolling back to 7.1.2,
> > > > > because it's unusable in this state.
> > > > > >
> > > > > > org.xwiki.rendering.macro.MacroExecutionException: The
> > > > > > execution of the
> > > > > [velocity] script macro is not allowed. Check the rights of
> > > > > its last author or the parameters if it's rendered from another script.
> > > > >
> > > > > [snip]

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
12