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

role_assign_parameters web service function has parameter types that do not make sense

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Web Services
    • Labels:
      None

      Description

      Please see the following parameter definitions in the function role_assign_parameters in /enrol/externallib.php:

      'contextid' => new external_value(PARAM_NOTAGS, 'The context to assign the user into '),
      'timestart' => new external_value(PARAM_EMAIL, 'A valid and unique email address', VALUE_DEFAULT, 0, NULL_NOT_ALLOWED),
      'timeend' => new external_value(PARAM_SAFEDIR, 'Auth plugins include manual, ldap, imap, etc', VALUE_DEFAULT, 0, NULL_NOT_ALLOWED)

      It seems to me these don't make any sense for the parameters they are for. I wonder if, perhaps, they were copy-and-pasted from another web service parameter definition and then never altered to the appropriate values. The above lines are from CVS head.

      This is currently preventing any web service from enrolling users, which is very crucial for us.

        Attachments

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            bazzymg Basil Gohar
            Tester:
            Nobody
            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:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10