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

Assignments calls to getContentReview are not protected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0, 21.0 [Tentative]
    • Fix Version/s: 21.0 [Tentative]
    • Component/s: Assignments
    • Labels:
      None
    • Test Plan:
      Hide

      1) Create and assignment

      2) as a student attempt to submit to the assignment

      3) The below NPE is shown before seeing the confirmation page

      expected: See student confirmation window

      Show
      1) Create and assignment 2) as a student attempt to submit to the assignment 3) The below NPE is shown before seeing the confirmation page expected: See student confirmation window

      Description

      06-Mar-2020 13:17:04.876 WARN [http-nio-9080-exec-6] org.sakaiproject.assignment.tool.AssignmentAction.getAssignment org.sakaiproject.assignment.tool.AssignmentAction@3e6b89aa:build_student_confirm_submission_context null null06-Mar-2020 13:17:04.877 WARN [http-nio-9080-exec-6] org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent Failed to buffer content.org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException  at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:495)  at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:234)  at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1176)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)  at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:426)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:352)  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)  at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:508)  at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1494)  at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1253)  at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1087)  at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:499)  at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:275)  at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:163)  at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:857)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)  at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)  at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:679)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)  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)Caused by: java.lang.reflect.InvocationTargetException  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  at java.lang.reflect.Method.invoke(Method.java:498)  at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:419)  ... 49 moreCaused by: java.lang.NullPointerException  at org.sakaiproject.assignment.tool.AssignmentAction.build_student_confirm_submission_context(AssignmentAction.java:2045)  at org.sakaiproject.assignment.tool.AssignmentAction.buildMainPanelContext(AssignmentAction.java:1241)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    ern Earle R Nietzel
                    Reporter:
                    ottenhoff Sam Ottenhoff
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration