NPE viewing dashboard containing announcements merged from site user isn't a member of

Description

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

Attachments

3
  • 19 Oct 2023, 11:11 PM
  • 19 Oct 2023, 11:11 PM
  • 18 Oct 2023, 10:51 PM

Activity

Show:

Andrea Schmidt November 4, 2023 at 2:59 PM
Edited

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

, yes please add stack traces (permission exception?) to SAK-49391

and yes, this Jira can be verified now.

Fixed

Details

Priority

23 Status

QA Verification Pass

22 Status

Verified

21 Status

Verified

Assignee

Reporter

Created October 5, 2023 at 7:22 PM
Updated November 4, 2023 at 3:22 PM
Resolved October 18, 2023 at 1:59 PM

Flag notifications