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

Lessons: getPrerequisiteDataForSubNav NullPointerException when groups involved

    XMLWordPrintable

    Details

    • 21 Status:
      Merged
    • Test Plan:
      Hide
      1. Create a site containing a single Lessons page, called "Lessons".
      2. Go to Site Info.
      3. Click Manage Groups.
      4. Click Create a new Group.
      5. Enter "Group 1" for the title and save the group.
      6. Navigate to the Lessons page.
      7. Click Add Content.
      8. Click Add Text.
      9. Add some text in the text box.
      10. Click the link stating "Edit the groups for which this item should be shown".
      11. Check the checkbox for "Group 1" and click Save.
      12. Go to Site Info.
      13. Click Manage Tools.
      14. Click the checkbox for "Enable Lessons subpage navigation in the left tool menu."
      15. Click Continue and then click Finish.
      16. If the bug is present, a stack trace with a NPE will display in catalina.out. This will be upon clicking Finish, and upon (almost) any navigation in the tool menu (e.g., moving from Site Info to Lessons or vice versa).

       

      Show
      Create a site containing a single Lessons page, called "Lessons". Go to Site Info. Click Manage Groups. Click Create a new Group. Enter "Group 1" for the title and save the group. Navigate to the Lessons page. Click Add Content. Click Add Text. Add some text in the text box. Click the link stating "Edit the groups for which this item should be shown". Check the checkbox for "Group 1" and click Save. Go to Site Info. Click Manage Tools. Click the checkbox for "Enable Lessons subpage navigation in the left tool menu." Click Continue and then click Finish. If the bug is present, a stack trace with a NPE will display in catalina.out. This will be upon clicking Finish, and upon (almost) any navigation in the tool menu (e.g., moving from Site Info to Lessons or vice versa).  

      Description

      This is the same error as SAK-44877, except now it only displays if there are groups in the site and subnavigation is enabled. Enabling the subnavigation and managing groups in site info displays a console error on the Manage Groups page. Not sure if SAK-44301 is also related.

      I've tested many deviations to try to determine when exactly these errors happen. 

      With Lessons > Subpage navigation enabled, clicking on Manage Groups displays the following console error:

      sakai-site-group-manager.helper:769 Uncaught ReferenceError: sakai is not defined
      at sakai-site-group-manager.helper:769
      (anonymous) @ sakai-site-group-manager.helper:769

      Stacktrace for Lessons > Subpage navigation with groups attached

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  hornersa Sean Horner
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration