NPE viewing dashboard containing announcements merged from site user isn't a member of
Description
Attachments
- 19 Oct 2023, 11:11 PM
- 19 Oct 2023, 11:11 PM
- 18 Oct 2023, 10:51 PM
Activity
Andrea Schmidt November 4, 2023 at 2:59 PMEdited
22x and 21x do not show the announcement on the Dashboard, but it is a different error than 23/24 and the NPE. Separate Jira since the code between 24/23 & 22/21 is different.
Created https://sakaiproject.atlassian.net/browse/SAK-49425 for 22 & 21
Andrea Schmidt November 4, 2023 at 2:48 PM
Tested 23x: https://qa23-maria.nightly.sakaiproject.org/, build: 932eb805
22x: https://qa22-mysql.nightly.sakaiproject.org/, build: a00c5dfe
21x: https://qa21-mysql.nightly.sakaiproject.org/, build: 097e81ff
No NPE when student loads the course overview/announcements page.
Thomas Kelsey November 2, 2023 at 5:43 PM
Verified on 23.x, https://qa23-maria.nightly.sakaiproject.org , build: 932eb805
Andrea Schmidt October 24, 2023 at 11:24 PM
Set this to verified since the NPE is no longer present and added the new stack traces to SAK-49391
Austin October 24, 2023 at 11:20 PM
@Andrea Schmidt , yes please add stack traces (permission exception?) to SAK-49391
and yes, this Jira can be verified now.
java.lang.NullPointerException: null at org.sakaiproject.webapi.controllers.AnnouncementsController.getSiteAnnouncements(AnnouncementsController.java:104) [classes/:?] at jdk.internal.reflect.GeneratedMethodAccessor5959.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) [spring-web-5.3.18.jar:5.3.18]
This was caused by the fix in SAK-47863