Uploaded image for project: 'Forum Application'
  1. Forum Application
  2. XAFORUM-214

Failed to execute velocity when you deny the view right for a user on a topic page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.1
    • 2.0.1
    • None
    • XE 7.4.2 / Tomcat 7 on 64 bits/ MySQL 5.7 / Java 8 / Windows 8.1 Pro on 64 bits / Chrome 49

    Description

      1. Create with Admin a Forum. Create a topic.
      2. Open the topic page, go to Administer page.
      3. Open Page and Children.
      4. Deny view right for group XWikiAll group on this topic page.
      5. Create a new user. This user will be included by default in XWikiAll group.
      6. Login with the new user and click on Forum icon from left app panel.
      7. Click on the Forum.

      Actual result:

      • New user will see the forum, but after it clicks on it, he will get:
        org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [  
        #if($xcontext.action == 'edit')
          {{html clean='false'}}
            <div class="xform">
              <dl>
                #edittitle('conversations.titleError')
                <dt><label for="ForumCode.ForumClass_0_description">$services.localization.render('conversations.forum.description')</label></dt>
                <dd>#cleanHTMLMacro($doc.display('description'))</dd>
              </dl>
            </div>
          {{/html}}
        #else
          #initForum($$doc.space)
          ## Depending on XE version, we consider parent-child relationship for Pre NS or space-subspace for NS.
          #set($hierarchyCondition = 'doc.parent=:parent or doc.space like :prefixSpace')
          #set($topics = $services.query.xwql("from doc.object(ForumCode.TopicClass) as topic where $hierarchyCondition").bindValue('parent', $doc.fullName).bindValue('prefixSpace', "${doc.space}.%").execute())
          {{html clean='false'}}
            <div class="forum">
              #displayAlertsMessages()
              <div class="forum-container">
                <span class="forum-topics-nb" title="$services.localization.render('conversations.forum.tooltip.totaltopics')">$topics.size()</span>
                <div class="forum-description">
                  #cleanHTMLMacro($doc.display('description'))
                </div>
                <div class="forum-metadata">
                  <span class="forum-metas">
                    <span class="forum-author"><span class="user-avatar">#smallUserAvater2($doc.creator)</span>$!xwiki.getUserName($doc.creator)</span>
                    <span class="forum-date">$xwiki.formatDate($doc.date)</span>
                    <span class="forum-topics" title="$services.localization.render('conversations.forum.tooltip.totaltopics')">$topics.size() $services.localization.render('conversations.topic.count')</span>
                  </span>
                </div>
              </div>
            </div>
            <h3 class="topics-title">$services.localization.render('conversations.topic.all')</h3>
            #displayTopicAddForm($space)
            <div id="forum-buttons">
              <label>$services.localization.render('conversations.forum.sorttopicsby')</label>
              #displayTopicSortButton('date')
              #displayTopicSortButton('votes')
              #displayTopicSortButton('comments')
            </div>
            ## Display topic list
            <div class="topics">
              #displayTopics()
            </div>
            ## Enable WYSIWYG editors loading when adding comments
            #displayEditors()
          {{/html}}
        #end
        #set($docextras = [])]
        	at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
        	at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50)
        	at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
        	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
        	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.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
        	at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
        	at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:131)
        	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:229)
        	at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
        	at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
        	at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
        	at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
        	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.getRenderedContent(XWikiDocument.java:1173)
        	at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1136)
        	at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1188)
        	at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
        	at sun.reflect.GeneratedMethodAccessor520.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.SimpleNode.render(SimpleNode.java:342)
        	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
        	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        	at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
        	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:725)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
        	at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
        	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1887)
        	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1865)
        	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
        	at sun.reflect.GeneratedMethodAccessor177.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: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:725)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
        	at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
        	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1887)
        	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1865)
        	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
        	at sun.reflect.GeneratedMethodAccessor177.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.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.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:725)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
        	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
        	at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
        	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1887)
        	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
        	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:444)
        	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:191)
        	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:624)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
        	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
        	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
        	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
        	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        	at java.lang.Thread.run(Thread.java:745)
        Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [xwiki:ForumCode.ForumSheet]
        	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:224)
        	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
        	at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124)
        	... 158 more
        Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRating' in  class org.xwiki.ratings.script.RatingsScriptService threw exception java.lang.NullPointerException at 38:xwiki:ForumCode.ForumSheet[line 642, column 40]
        	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)
        	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
        	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.ASTNENode.evaluate(ASTNENode.java:69)
        	at org.apache.velocity.runtime.parser.node.ASTNENode.value(ASTNENode.java:150)
        	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
        	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.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.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.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)
        	... 160 more
        Caused by: java.lang.NullPointerException
        	at org.xwiki.ratings.script.RatingsScriptService.getRating(RatingsScriptService.java:175)
        	at sun.reflect.GeneratedMethodAccessor861.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)
        	... 190 more
        

      Expected result:

      • After I click on the forum, I expect to not see the restricted access topic, but if there are other topics that are not restricted for me, I expect to be able to access them.

      PS:

      • The same scenario is reproduced also if you: deny the view right for a user on a topic page
      • This scenario does not reproduce if you deny the view right on the forum page.

      Attachments

        Activity

          People

            camil7 Clemens Robbenhaar
            ihrehorciuc Irina Hrehorciuc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: