Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-21515

Hidden template xsl files throw errors when viewing portfolio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.8.0
    • Fix Version/s: None
    • Component/s: OSP: Portfolios
    • Labels:
      None

      Description

      Create a portfolio template using a hidden xsl file.
      Create a portfolio using such a template.
      Make the portfolio public.
      Attempt to view the portfolio from the public URL when logged out. You will get the following error.

      2011-12-01 12:14:20,583 WARN http-8083-Processor15
      org.sakaiproject.authz.impl.DbAuthzGroupService - isAllowed(): called with
      no realms: lock: content.hidden user:
      2011-12-01 12:14:20,766 ERROR http-8083-Processor15
      org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl -
      org.sakaiproject.exception.PermissionException user=null lock=content.read
      resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
      at
      org.sakaiproject.content.impl.BaseContentService.unlock(BaseContentService.java:1760)
      at
      org.sakaiproject.content.impl.BaseContentService.getResource(BaseContentService.java:4183)
      at
      org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl.getNode(PresentationManagerImpl.java:2454)
      at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy48.getNode(Unknown Source)
      at
      org.theospi.portfolio.presentation.control.ViewPresentationControl.getTransformer(ViewPresentationControl.java:326)
      at
      org.theospi.portfolio.presentation.control.ViewPresentationControl.handleRequest(ViewPresentationControl.java:258)
      at
      org.sakaiproject.metaobj.utils.mvc.impl.servlet.ViewControllerImpl.handle(ViewControllerImpl.java:78)
      at
      org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:84)
      at
      org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      at
      org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      at
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
      at
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      at
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:659)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
      at
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at
      org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:662)
      2011-12-01 12:14:20,788 WARN http-8083-Processor15
      org.sakaiproject.util.RequestFilter - Request processing failed; nested
      exception is java.lang.RuntimeException:
      org.sakaiproject.exception.PermissionException user=null lock=content.read
      resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
      org.springframework.web.util.NestedServletException: Request processing
      failed; nested exception is java.lang.RuntimeException:
      org.sakaiproject.exception.PermissionException user=null lock=content.read
      resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
      at
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
      at
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:659)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
      at
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at
      org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.RuntimeException:
      org.sakaiproject.exception.PermissionException user=null lock=content.read
      resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
      at
      org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl.getNode(PresentationManagerImpl.java:2461)
      at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy48.getNode(Unknown Source)
      at
      org.theospi.portfolio.presentation.control.ViewPresentationControl.getTransformer(ViewPresentationControl.java:326)
      at
      org.theospi.portfolio.presentation.control.ViewPresentationControl.handleRequest(ViewPresentationControl.java:258)
      at
      org.sakaiproject.metaobj.utils.mvc.impl.servlet.ViewControllerImpl.handle(ViewControllerImpl.java:78)
      at
      org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:84)
      at
      org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      at
      org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      at
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
      at
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      ... 20 more
      Caused by: org.sakaiproject.exception.PermissionException user=null
      lock=content.read
      resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
      at
      org.sakaiproject.content.impl.BaseContentService.unlock(BaseContentService.java:1760)
      at
      org.sakaiproject.content.impl.BaseContentService.getResource(BaseContentService.java:4183)
      at
      org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl.getNode(PresentationManagerImpl.java:2454)
      ... 39 more
      2011-12-01 12:14:20,790 ERROR http-8083-Processor15
      org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/osp-presentation-tool].[springapp]

      • Servlet.service() for servlet springapp threw exception
        org.sakaiproject.exception.PermissionException user=null lock=content.read
        resource=/content/group/35a19869-21a6-44fc-b1c0-6a37f613a80b/Test/portfolio_template.xsl
        at
        org.sakaiproject.content.impl.BaseContentService.unlock(BaseContentService.java:1760)
        at
        org.sakaiproject.content.impl.BaseContentService.getResource(BaseContentService.java:4183)
        at
        org.theospi.portfolio.presentation.model.impl.PresentationManagerImpl.getNode(PresentationManagerImpl.java:2454)
        at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
        org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at
        org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at
        org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at
        org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy48.getNode(Unknown Source)
        at
        org.theospi.portfolio.presentation.control.ViewPresentationControl.getTransformer(ViewPresentationControl.java:326)
        at
        org.theospi.portfolio.presentation.control.ViewPresentationControl.handleRequest(ViewPresentationControl.java:258)
        at
        org.sakaiproject.metaobj.utils.mvc.impl.servlet.ViewControllerImpl.handle(ViewControllerImpl.java:78)
        at
        org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:84)
        at
        org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at
        org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at
        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
        at
        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
        at
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
        at
        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:659)
        at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
        at
        org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:662)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                osp-jira OSP Jira Team (Inactive)
                Reporter:
                smkeesle Sean Keesler (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration