Details
-
Bug
-
Resolution: Solved By
-
Blocker
-
None
-
12.10
-
None
-
Windows 10 Pro 64 bit, Chrome 87, using a local instance of XWiki 12.10 on PostgreSQL 13, Tomcat 9.0.40
-
Unknown
-
Description
STEPS TO REPRODUCE
- Login as Admin
- Go to Administer Wiki > Extensions > Extensions
- Install Live Data Macro (12.10)
EXPECTED RESULTS
The macro is installed properly.
ACTUAL RESULTS
After installing, the button 'Repair' is displayed in the right side of the macro extension, instead of 'Uninstall'.
Also it displays: 'Installed but not valid' above it.
After clicking 'Repair', the following warning and error is displayed in Progress tab and the 'Repair' button keeps re-displaying:
Warning:
Failed to install optional dependency [org.xwiki.platform:xwiki-platform-livedata-webjar-[12.10]] with error: InstallException: Extension [org.xwiki.platform:xwiki-platform-livedata-webjar::jar/12.10] is already installed on namespace [wiki:xwiki]
Error:
Extension [org.xwiki.platform:xwiki-platform-livedata-webjar::jar/12.10] is already installed on namespace [wiki:xwiki]
If on a page is pasted in wiki mode or source and Saved the following script:
{{liveData id="recentPages" properties="doc.title,doc.location,doc.author,doc.date" source="liveTable" sourceParameters="translationPrefix=platform.index." filters="doc.location=help" sort="doc.date:desc" limit="5" /}}
sometimes is displayed the following error:
and sometimes nothing is displayed, but in console there is the following error:
2020-12-02 17:31:51,587 [qtp1422222071-125 - http://localhost:1210/xwiki/bin/skin/resources/uicomponents/widgets/liveData.min.js?cache-version=1606296698000] ERROR o.a.v.parser - /resources/uicomponents/widgets/liveData.min.js: Encountered "!" at line 1, column 294. Was expecting one of: "[" ... "{" ... <WHITESPACE> ... <NEWLINE> ... <STRING_LITERAL> ... "true" ... "false" ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <IDENTIFIER> ... <OLD_IDENTIFIER> ... "{" ... "[" ... 2020-12-02 17:31:51,590 [qtp1422222071-125 - http://localhost:1210/xwiki/bin/skin/resources/uicomponents/widgets/liveData.min.js?cache-version=1606296698000] ERROR c.x.x.XWiki - Error while parsing velocity template namespace [/resources/uicomponents/widgets/liveData.min.js] with content: ['use strict';require.config({paths:{Logic:$jsontool.serialize($services.webjars.url("org.xwiki.platform:xwiki-platform-livedata-webjar","Logic.min")),liveDataSource:$jsontool.serialize($services.webjars.url("org.xwiki.platform:xwiki-platform-livedata-webjar","liveDataSource.min.js",{evaluate:!0})),Vue:$jsontool.serialize($services.webjars.url("vue","vue.min")),"xwiki-livedata":$jsontool.serialize($liveDataPath)}});window.liveDataBaseURL=$jsontool.serialize($liveDataBasePath); require(["jquery","Logic"],function(a,e){a.fn.liveData=function(c){return this.each(function(){if(!a(this).data("liveData")){var b=a.extend(a(this).data("config"),c);a(this).attr("data-config",JSON.stringify(b)).data("liveData",e(this))}})};var d=function(c,b){a(b&&b.elements||document).find(".liveData").liveData()};a(document).on("xwiki:dom:updated",d);a(d)}); //# sourceMappingURL=liveData.min.js.map ] org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [/resources/uicomponents/widgets/liveData.min.js] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:292) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:249) at com.xpn.xwiki.internal.velocity.DefaultVelocityEvaluator.evaluateVelocity(DefaultVelocityEvaluator.java:72) at com.xpn.xwiki.XWiki.evaluateVelocity(XWiki.java:6387) at com.xpn.xwiki.XWiki.evaluateVelocity(XWiki.java:6406) at com.xpn.xwiki.web.SkinAction.lambda$evaluateVelocity$0(SkinAction.java:385) at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98) at com.xpn.xwiki.web.SkinAction.evaluateVelocity(SkinAction.java:385) at com.xpn.xwiki.web.SkinAction.renderFileFromFilesystem(SkinAction.java:282) at com.xpn.xwiki.web.SkinAction.render(SkinAction.java:157) at com.xpn.xwiki.web.SkinAction.render(SkinAction.java:83) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:556) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250) 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:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1411) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:501) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.apache.velocity.exception.ParseErrorException: Encountered "!" at /resources/uicomponents/widgets/liveData.min.js[line 1, column 294] Was expecting one of: "[" ... "{" ... <WHITESPACE> ... <NEWLINE> ... <STRING_LITERAL> ... "true" ... "false" ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <IDENTIFIER> ... <OLD_IDENTIFIER> ... "{" ... "[" ... at org.apache.velocity.Template.process(Template.java:154) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:281) ... 66 common frames omitted
Attachments
Issue Links
- depends on
-
XCOMMONS-2101 Webjar extensions can still be stored with a wrong id in the local extension repository
- Closed
- is related to
-
XWIKI-18115 The live data macro doesn't load
- Closed
-
XWIKI-17573 Add a Live Data rendering macro
- Closed