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

Adding user to role in course category causes: "The user_selector classes do not support custom list of extra identity fields any more..."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.1, 3.8
    • Fix Version/s: 3.8.4
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Navigate to Site administration > Development > Debugging
      2. Set Display debug messages to Yes
      3. Set Debug messages to Developer
      4. Press Save changes
      5. Navigate to Site administration > Users > Permissions > User policies
      6. Set Show user identity to Email address & Country
      7. Press Save changes
      8. Create a new user: Bob Smith
      9. Navigate to Site administration > Courses > Manage courses and categories
      10. Press the Actions menu icon next to the Miscellaneous category, select Assign roles
      11. Press the Manager role
      12. Under Potential users search for Bob
      13. Check your web server logs (placed by default in /var/log/apache2/error.log) for the absence of debugging messages like the following

      [Thu Aug 22 17:11:05.076267 2019] [php7:notice] [pid 5423] [client 192.168.122.1:34614] Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in \n* line 112 of /user/selector/lib.php: call to debugging()\n* line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()\n* line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()\n, referer: http://MOODLE/admin/roles/assign.php?contextid=3&returnurl=%2Fcourse%2Fmanagement.php%3Fcategoryid%3D1&roleid=1
      

       You can use the following command from the console to see the latest messages in the error.log file:

      tail -f /var/log/apache2/error.log

      Show
      Navigate to Site administration > Development > Debugging Set Display debug messages to Yes Set Debug messages to Developer Press Save changes Navigate to Site administration > Users > Permissions > User policies Set Show user identity to Email address & Country Press Save changes Create a new user: Bob Smith Navigate to Site administration > Courses > Manage courses and categories Press the Actions menu icon next to the Miscellaneous category, select Assign roles Press the Manager role Under Potential users search for Bob Check your web server logs (placed by default in /var/log/apache2/error.log) for the absence of debugging messages like the following [Thu Aug 22 17:11:05.076267 2019] [php7:notice] [pid 5423] [client 192.168.122.1:34614] Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in \n* line 112 of /user/selector/lib.php: call to debugging()\n* line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()\n* line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()\n, referer: http://MOODLE/admin/roles/assign.php?contextid=3&returnurl=%2Fcourse%2Fmanagement.php%3Fcategoryid%3D1&roleid=1  You can use the following command from the console to see the latest messages in the error.log file: tail -f /var/log/apache2/error.log
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull 3.8 Branch:
    • Pull Master Branch:

      Description

      To reproduce (debugging at Developer level)...

      • Pull up a Course Category page
      • Select 'Assign roles' from the settings cog 
      • Select a role (e.g. Manager)
      • Search for and add any user you like

       

      Check logs, and you should see...

      Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in

      • line 112 of /user/selector/lib.php: call to debugging()
      • line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()
      • line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()
      • referer: ........./admin/roles/assign.php?contextid=3&roleid=1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              howardsmiller Howard Miller
              Peer reviewer:
              Neill Magill
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 40 minutes
                  1h 40m