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

Forums direct message link does not display the message

    XMLWordPrintable

Details

    • Bug
    • Status: OPEN
    • Major
    • Resolution: Unresolved
    • 19.7 [Tentative], 21.1, 20.4, 22.0 [Tentative]
    • None
    • Forums Tool
    • None
    • Hide
      1. In the Forums tool
      2. open a topic
      3. create a new conversation
      4. open the conversation
      5. click on a conversation message (the first message will be the conversation title)
      6. click the "copy link" button
      7. copy the url that is displayed
      8. open a new browser tab
      9. paste in the URL
      10. the main Forums page is displayed

      expected result - the direct message is displayed

      Show
      In the Forums tool open a topic create a new conversation open the conversation click on a conversation message (the first message will be the conversation title) click the "copy link" button copy the url that is displayed open a new browser tab paste in the URL the main Forums page is displayed expected result - the direct message is displayed

    Description

      If click all the way down to a specific message in Forums, there's a "copy link" button. After copying the URL from that button then pasting it into a new browser tab, it doesn't show that message. instead it just shows the main Forums page.

      https://trunk-mysql.nightly.sakaiproject.org/portal/site/0f5b9d2d-46c5-4746-a49e-6b697d54ff02/tool/e8807803-5aeb-47b1-8b1f-2b2e04e7a907/discussionForum/message/dfViewMessageDirect?forumId=44&topicId=193&messageId=2

      here's the error from the logs

      15-Apr-2021 20:39:48.662 WARN [http-nio-20013-exec-3] org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent Failed to buffer content.
      
      org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException
      
      	at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:520)
      
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1501)
      
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1222)
      
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1056)
      
      	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:496)
      
      	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:836)
      
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
      
      	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: javax.servlet.ServletException
      
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:683)
      
      	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:447)
      
      	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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
      
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
      
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
      
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      
      	at org.sakaiproject.tool.messageforums.MessageForumsFilePickerServlet.dispatch(MessageForumsFilePickerServlet.java:171)
      
      	at org.sakaiproject.jsf2.util.JsfTool.doGet(JsfTool.java:235)
      
      	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:447)
      
      	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)
      
      	... 34 more
      
      Caused by: java.lang.NullPointerException
      
      	at javax.faces.component.UIComponent.getCurrentComponent(UIComponent.java:2208)
      
      	at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:127)
      
      	at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2341)
      
      	at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2159)
      
      	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:340)
      
      	at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:761)
      
      	at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:146)
      
      	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:102)
      
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      
      	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:223)
      
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)
      
      	... 60 more
      

      Gliffy Diagrams

        Zeplin

          Attachments

            Issue Links

              Activity

                People

                  Unassigned Unassigned
                  austinUH Austin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                    Created:
                    Updated:

                    Git Integration