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

Lessons: Removed users can make the tool unusable

    XMLWordPrintable

    Details

    • 20 status:
      Verified
    • Test Plan:
      Hide

      Hard to reproduce I guess, using lessons in a site with some members and delete a member from the platform (Not the site, delete it from the platform).

      Show
      Hard to reproduce I guess, using lessons in a site with some members and delete a member from the platform (Not the site, delete it from the platform).

      Description

      Seen in my local environment, sometimes Lessons uses null site members producing a NPE when sorting the members using the UserNameComparator introduced in SAK-43377.

       

      26-Mar-2020 07:45:03.410 INFO [http-nio-8080-exec-4] org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.getUserDisplayName Owner #: null does not have an associated user.26-Mar-2020 07:45:03.410 INFO [http-nio-8080-exec-4] org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.getUserDisplayName Owner #: null does not have an associated user.26-Mar-2020 07:45:03.827 ERROR [http-nio-8080-exec-4] org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.getUser User b9ae596d-1183-4938-9c60-9072a6bc1e3a does not exist26-Mar-2020 07:45:03.828 WARN [http-nio-8080-exec-4] PonderUtilCore.handleLevel1Error Exception rendering view: java.lang.NullPointerException at org.sakaiproject.util.comparator.UserSortNameComparator.compare(UserSortNameComparator.java:51) at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer$4.compare(ShowPageProducer.java:4957) at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer$4.compare(ShowPageProducer.java:4954) at java.util.Arrays.mergeSort(Arrays.java:1544) at java.util.Arrays.mergeSort(Arrays.java:1555) at java.util.Arrays.mergeSort(Arrays.java:1556) at java.util.Arrays.mergeSort(Arrays.java:1555) at java.util.Arrays.mergeSort(Arrays.java:1556) at java.util.Arrays.mergeSort(Arrays.java:1556) at java.util.Arrays.mergeSort(Arrays.java:1556) at java.util.Arrays.legacyMergeSort(Arrays.java:1523) at java.util.Arrays.sort(Arrays.java:1510) at java.util.ArrayList.sort(ArrayList.java:1462) at java.util.Collections.sort(Collections.java:177) at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.createEditTitleDialog(ShowPageProducer.java:4954) at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.createDialogs(ShowPageProducer.java:3589) at org.sakaiproject.lessonbuildertool.tool.producers.ShowPageProducer.fillComponents(ShowPageProducer.java:1252) 

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    farreri Miguel Pellicer
                    Reporter:
                    farreri Miguel Pellicer
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    4 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration