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

Lessons read events for SimplePageItem objects utilizes the wrong ID

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.7
    • Fix Version/s: 11.4, 12.0
    • Component/s: Lessons
    • Labels:
    • 11 status:
      Resolved
    • Previous Issue Keys:
      LSNBLDR-740

      Description

      When Lessons fires off a read event for SimplePageItem objects, it creates the event ref in the following format:

      /lessonbuilder/item/<ID>

      However, the ID it's sticking in there is retrieved via the getSakaiId() method. This method returns something other than the actual item ID.

      In testing, I've found that typically it is an integer value of the actual ID minus 1. For example, if the item's ID is 401901, the value returned from getSakaiId() is 401900.

      When searching through the code, it seems this field could also be used for storing an entity reference to some other object (maybe a quiz or an assignment).

      However, for the purposes of events and resolving the event reference in question, we don't care about the entity reference that could be on the page/item. What we really want to resolve is the actual Lessons page/item. So the 'sakai ID' is irrelevant here; it should always be storing the actual item ID in the event ref string.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bjones86 Brian Jones
                  Reporter:
                  bjones86 Brian Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code