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

Problems Posting Message in Forums

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.3, 12.0
    • Fix Version/s: 11.3, 12.0
    • Component/s: Forums Tool
    • Labels:
      None
    • 11 status:
      Resolved

      Description

      The Forums tool is not working properly when posting messages. Sometimes a message is created, but Sakai does not render it until the Forums tool is reset. Sometimes it causes a stacktrace with a nullpointerexception.

      To test:

      1. Go to the Forums tool in a course.
      2. Go to a topic screen
      3. Click "Start a New Conversation" or Reply to an existing message
      4. Type a message and click "Post"

      I haven't determined the exact circumstances that lead to a bug report page vs. Sakai rendering a blank Topic page, but it never behaves as it should. I think even when it is showing a page, it is still logging a stacktrace to the log.

      Two stack-traces I've seen generated.

      02-Jan-2017 18:23:19.916 ERROR [http-apr-18888-exec-1] org.sakaiproject.tool.messageforums.DiscussionForumTool.processDfMsgPost DiscussionForumTool: processDfMsgPost
      java.lang.NullPointerException
      	at org.sakaiproject.tool.messageforums.DiscussionForumTool.processDfMsgPost(DiscussionForumTool.java:3829)
      

      Which relates to code

          	selectedTopic.getTopic().setBaseForum(selectedForum.getForum());
      
      caused by: javax.faces.el.EvaluationException: Error getting property 'messages' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException
          at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
      caused by: java.lang.NullPointerException
          at org.sakaiproject.tool.messageforums.DiscussionForumTool.getMessages(DiscussionForumTool.java:7781)
      

      Which relates to code

      			messages = filterModeratedMessages(messages, selectedTopic.getTopic(), selectedForum.getForum());
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  ansorgej John Ansorge
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code