Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61220

Having dash in the role name breaks the site completely after 3.4 upgrade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 3.4, 3.4.1
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      During upgrade to Moodle 3.4 the site completely collapsed and I ended up partially reverting MDL-30634
      There is a role on the site (assignable in system context) that has a dash in its short name.

      This error is displayed on every page:

      Invalid admin setting (auth_ldap/test-rolecontext)
       
      More information about this error
      Debug info:
      Error code: invalidadminsettingname
      Stack trace:
       
          line 1701 of /lib/adminlib.php: moodle_exception thrown
          line 1567 of /lib/adminlib.php: call to admin_setting->parse_setting_name()
          line 2146 of /lib/adminlib.php: call to admin_setting->__construct()
          line 250 of /auth/ldap/settings.php: call to admin_setting_configtext->__construct()
          line 85 of /lib/classes/plugininfo/auth.php: call to include()
          line 133 of /admin/settings/plugins.php: call to core\plugininfo\auth->load_settings()
          line 8000 of /lib/adminlib.php: call to require()
          line 26 of /admin/search.php: call to admin_get_root()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marina Marina Glancy
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: