Details
-
Type:
Bug
-
Status: CLOSED
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects 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:
- Go to the Forums tool in a course.
- Go to a topic screen
- Click "Start a New Conversation" or Reply to an existing message
- 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
Zeplin
Attachments
Issue Links
- depends on
-
SAK-25289 Breadcrumbs trail incorrect when accessing forum topics
-
- CLOSED
-
- is depended on by
-
SAK-31200 forums open and close dates don't obey time zone
-
- Verified
-
- is duplicated by
-
SAK-32072 Creating New Forum fails on master
-
- RESOLVED
-
- is related to
-
SAK-31271 Forums displays erroneous breadcrumb trail for the Conversations when navigating through messages
-
- OPEN
-