Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7243

Error message shown when displaying a room with a participant rule for a custom role that was deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.9, 3.1.10, 3.1.11, 3.2.6, 3.2.7, 3.2.8, 3.3.3, 3.3.4, 3.3.5, 3.4, 3.4.1, 3.4.2
    • Fix Version/s: None
    • Labels:
      None
    • Plugin Version:
      2.2.x
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE

      Description

      Summary:
      This was originally reported as a random error showing up in some rooms after updating to 2.2.2.

      Notice: Undefined offset: 9 in /home/ubuntu/xdev/html/moodle34/mod/bigbluebuttonbn/locallib.php on line 709

      Notice: Undefined property: stdClass::$id in /home/ubuntu/xdev/html/moodle34/mod/bigbluebuttonbn/locallib.php on line 907
      After further investigation it was discovered that the error is shown when a room that was configured with participation rules including custom roles, and one or some of those roles were removed (or updated).

      Steps to reproduce:

      • Create a custom role
      • Create a new room
      • Assign a participation rule to the room where the custom role is moderator
      • Save the room
      • Delete the custom role
      • Display the room

      Expected behavior:

      Same as for Users, the role should just not be considered if it is missing.

      Additional notes:

      As a workaround the room can be edited and saved again. That will update the permission list (as the rule is not considered if the role is not found) and fix the reference in the database.

        Attachments

          Activity

            People

            Assignee:
            jfederico Jesus Federico
            Reporter:
            jfederico Jesus Federico
            Participants:
            Component watchers:
            Jesus Federico
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: