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

auth_email_get_signup_settings: Invalid response if profilefield shortname has underscore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.7, 3.7.3, 3.8, 3.9
    • Fix Version/s: 3.7.5, 3.8.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. As admin, go to Site administration ►Users ►Accounts ►User profile fields.
      2. Create a new profile field of any type. Make sure to add an underscore (_) in the short name and enable "Display on signup page?". E.g. the short name can be "my_new_field".
      3. Go to Site administration ►Plugins ►Authentication.
      4. Enable "Email-based self-registration".
      5. Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours)

        curl 'http://localhost/stable_master/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}]' | python -m "json.tool"

      1. Check that no error is returned and the field you created is included in the "profilefields" field of the response.
      Show
      As admin, go to Site administration ►Users ►Accounts ►User profile fields. Create a new profile field of any type. Make sure to add an underscore (_) in the short name and enable "Display on signup page?". E.g. the short name can be "my_new_field". Go to Site administration ►Plugins ►Authentication. Enable "Email-based self-registration". Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours) curl 'http://localhost/stable_master/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}] ' | python -m "json.tool" Check that no error is returned and the field you created is included in the "profilefields" field of the response.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull from Repository:
    • Pull 3.7 Branch:
    • Pull 3.8 Branch:
    • Pull Master Branch:
      MDL-67641-master

      Description

      Revise webservices for accepting underscores in shortnames of user profile fields

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              isabelrenedo Isabel Renedo Rouco
              Peer reviewer:
              Juan Leyva
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m