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

Calendar link to assignment causes NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 19.5
    • Fix Version/s: None
    • Component/s: Assignments, Calendar
    • Labels:
      None
    • Environment:
      Sakai nightly 19
    • 19 status:
      Please Merge
    • Test Plan:
      Hide
      1. Create an assignment with a link to the calendar tool.
      2. Access the calendar tool item for the assignment
      3. Select the assignment link which should take you to the assignment
      4. Ensure there is no Stack trace occuring in logs and error in the UI that the assignment cannot be found.
      Show
      Create an assignment with a link to the calendar tool. Access the calendar tool item for the assignment Select the assignment link which should take you to the assignment Ensure there is no Stack trace occuring in logs and error in the UI that the assignment cannot be found.

      Description

      If an assignment is linked to the calendar, if a user goes to that calendar item and selects the assignment link, a NPE stack trace is displayed.  I'll attach a stack trace to the JIRA. 

      Sample link from calendar:

      javascript:change_parent_url('https://HOSTNAME/portal/directtool/098e22d8-71ac-402c-b493-5838a8d1df3d?assignmentId=2ac536da-5f5b-4764-9f25-1c703181ac5a&assignmentReference=/assignment/a/b538992a-1772-4630-8fd3-c8d8809b89b4/2ac536da-5f5b-4764-9f25-1c703181ac5a&panel=Main&sakai_action=doView_assignment');

      30-Sep-2020 10:09:32.529 WARN [http-apr-9232-exec-28] org.sakaiproject.assignment.tool.AssignmentAction.getAssignment org.sakaiproject.assignment.tool.AssignmentAction@18fb1fe8:doView_assignment null 2ac536da-5f5b-4764-9f25-1c703181ac5a
      30-Sep-2020 10:09:32.530 WARN [http-apr-9232-exec-28] org.sakaiproject.cheftool.VelocityPortletPaneledAction.actionDispatch Exception calling method doView_assignment java.lang.reflect.InvocationTargetException (Caused by java.lang.NullPointerException)
      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.actionDispatch(VelocityPortletPaneledAction.java:757)
              at org.sakaiproject.cheftool.VelocityPortletPaneledAction.processAction(VelocityPortletPaneledAction.java:569)
              at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:228)
              at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1169)
              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:513)
              at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1510)
              at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1233)
              at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1067)
              at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:491)
              at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:267)
              at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:155)
              at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:856)
              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.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2079)
              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.NullPointerException
              at org.sakaiproject.assignment.tool.AssignmentAction.assignment_resubmission_option_into_state(AssignmentAction.java:14093)
              at org.sakaiproject.assignment.tool.AssignmentAction.doView_assignment(AssignmentAction.java:9232)
              ... 54 more
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  drramsey Derek Ramsey
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:

                      Git Integration