I swear I used to be able to upload images, but for some reason I can’t see, I cannot now. My xwiki (XWiki Debian 10.11.1) otherwise seems to be working fine, but if I go in to editor and add image, upload tab, select a small image from my machine and hit “send it to the server”, I get “incorrect server response”.
I can’t find anything helpful in the logs, nothing in catalina.out, I do see the following in localhost_access_log:
10.210.197.61 - - [30/Apr/2019:21:12:00 +0000] "POST /xwiki/bin/get/CCoE/Product%20Documentation/test%20page/?sheet=CKEditor.FileUploader&outputSyntax=plain&language=en&form_token=3cf8vpWw3DeJc6DoiQGEGQ&initiator=filebrowser HTTP/1.1" 200 33651
10.210.197.61 - - [30/Apr/2019:21:12:06 +0000] "POST /xwiki/bin/get/CCoE/Product%20Documentation/test%20page/?sheet=CKEditor.FileUploader&outputSyntax=plain&language=en&form_token=3cf8vpWw3DeJc6DoiQGEGQ&initiator=filebrowser HTTP/1.1" 200 33651
The image file is only about 130kb. I could stand some clues… how can I understand what “incorrect server response” is? I haven’t upgraded tomcat8 or xwiki, and I’ve restarted mysql and tomcat8 without difference.
Any advise on how and where I can start looking for the problem? Thanks in advance.
-Alan
You can use the browser’s developer tools (Network tab) to inspect the response of the HTTP (POST) request that uploads the file.
By replicating this with the Chrome tools up, I was able to get the below string:
"{"responseText":"Failed to execute the [velocity] macro. Cause: [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.]. Click on this message for details.org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last auth…"
But I’m confused. This is in the sandbox, and I can’t figure out what it’s pointing to - something that got changed accidentally somewhere?
Failed to execute the [velocity] macro. Cause: [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.]. Click on this message for details.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:297)↵ at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)↵ at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)↵ at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)↵ at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:245)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:225)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:180)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)↵ at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)↵ at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)↵ at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1202)↵ at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1243)↵ at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1220)↵ at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:835)↵ at sun.reflect.GeneratedMethodAccessor379.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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.ASTExpression.value(ASTExpression.java:71)↵ at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)↵ 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.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)↵ at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)↵ at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:87)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)↵ at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:489)↵ at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210)↵ 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.doPost(ActionServlet.java:462)↵ at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)↵ at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:134)↵ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)↵ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)↵ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)↵ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)↵ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)↵ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)↵ at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)↵ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)↵ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)↵ at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)↵ at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)↵ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)↵ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)↵ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)↵ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)↵ at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)↵ at java.lang.Thread.run(Thread.java:748)↵Failed to execute the [velocity] macro. Cause: [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.]. Click on this message for details.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:297)↵ at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)↵ at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)↵ at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)↵ at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)↵ at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:245)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:225)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:180)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)↵ at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)↵ at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)↵ at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)↵ at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1202)↵ at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1243)↵ at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1220)↵ at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:835)↵ at sun.reflect.GeneratedMethodAccessor379.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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.ASTExpression.value(ASTExpression.java:71)↵ at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)↵ 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.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)↵ at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)↵ at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:87)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.lambda$renderFromSkin$0(InternalTemplateManager.java:698)↵ at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:697)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:676)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:662)↵ at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)↵ at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2290)↵ at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2268)↵ at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:992)↵ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:498)↵ 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:259)↵ at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)↵ at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:358)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:847)↵ at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:723)↵ at ...
Seems someone saved a page containing some scripts but with a user not having the script right. You need to save that page again but with a user having script rights (or rollback the change).
How can I figure out the “a page” part? I have a lot of pages, and no idea how to figure out which page could be a problem…
I’ve been trying to figure out if it is an access rights issue, and I can’t see what would prevent it from running anyway… my global admin rights (groups) look like the picture below. I’m a member of the IS_CCOE group and the admins group. I’ve also tried it with my localadmin user, which is a local user in admin group created when I installed xwiki. All throw the same error.

EDIT: I don’t know if it is important - but before today I had the “allgroup” with most of the entries as blocked (red). Trying to be sure that people outside my “ccoe” group had only read access to the wiki section. I don’t think that would have caused some problem, right?
I’ve tried re-saving any pages I know of that might have scripts (local macros, only have one), without luck.
Sorry to beg, but any other ideas how I can find whatever is throwing this velocity error? I can’t find any pages that changed that would have affected the editor on some global scale.
Correct, however it’s not the way to do it. You just need to have an empty right for the XWikiAllGroup and since other groups have this right explicitly set, all the groups not having it set will not have this right.
ok so your issue seems to be with CKEditor only right? If you add images using the view mode and the Attachment tab at the bottom of pages it works right?
So it means that either:
- Someone has modified and saved some CKEditor wiki pages with a user hot having script rights
- You removed the user which was used to install XWiki and thus that user was used to save the pages, including the CKEditor ones. By removing it, you also removed the script rights of that user for those pages. If that’s the case then please check https://extensions.xwiki.org/xwiki/bin/view/Extension/Change%20Content%20Author
I don’t know which CKEditor page is causing the problem nor the one(s) you may have modified. You should check all pages in your wiki that exist in the CKEditor space (use the Page Index to filter and check the last modified dates to see which page(s) have been modified recently).
Thanks for the responses. I’ll take a look at the permissions and clear the allusers then.
And correct - if I add the images as attachments, then use the image tool to place images from the attachments, that works fine. So it is specifically the “send to server” function that is broken.
Based on the either/or, the user used to install xwiki (my “localadmin” user) does still exist, as a member of the xwikiadmins group with full permissions. I can’t imagine there having been a user modification to the xwiki code pages (haven’t granted admin permissions to others), but I’ll take a look at what you suggested for anything unusual.
Hi, I still need help here… I’ve been trying to find anything on my wiki that changed, in terms of permissions, an I can’t find anything after weeks of looking.
I’m still confused that I still have the issue even when using the install user (my “localadmin”) which is the owner of the wiki. That user should have script permissions, right? I’ve not changed any permissions on that user.
Is there /any/ way to get some sort of “trace” for what is happening, some debug mode that could get me some sort of information what is happening? All I can get is client-side, the error message with a Java stack trace that doesn’t tell me anything… I’ve tried removing the one local macro I have, and that hasn’t helped either.
The client shows this odd-to-me message:
The script from “https://wiki.ss.saas.microfocus.com/xwiki/bin/get/CKEditor/Config?outputSyntax=plain&t=J4RE” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
Then when hitting the image upload “send to server” link:
[CKEDITOR] Error code: filetools-response-error.
Object { responseText: “Failed to execute the [velocity] macro. Cause: [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.]. Click on this message for details.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.\n\tat org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)\n\tat org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)\n\tat org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)\n\tat org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)\n\tat org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.ja…” }
cke
Replying to my post with an update. Was never able to find the cause to this. However, I’ve been working on upgrading my instance to 11.10.2, which inherited the same issue.
But, during post-upgrade work I found an upgrade for CKEditor to 1.39, seemed to be optional update since the extension updater did not flag it. Doing that upgrade fixed the issue.
1 Like