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

Invalid response value detected: submissiongroup on mod_assign_get_submission_status

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-54991-master
    • Easy
    • Hide
      1. Create a course without groups with a student.
      2. Create an assignment with the following parameters:
      3. Students submit in groups: YES
      4. Require group to make submission: NO
      5. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      6. Create a Token for the student user.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      7. Next, you can do a CURL REST call simulating a WS client with the student user.
        • You need to replace the wstoken, assignid (id of the created assign), userid (student id) and the URL of your moodle instance.

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_submission_status&assignid=13&userid=6&wstoken=e0962985ad3573791917106a932952f' --compressed

      8. Confirm the error is not there anymore.
      Show
      Create a course without groups with a student. Create an assignment with the following parameters: Students submit in groups: YES Require group to make submission: NO As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student user. Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the student user. You need to replace the wstoken, assignid (id of the created assign), userid (student id) and the URL of your moodle instance. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_submission_status&assignid=13&userid=6&wstoken=e0962985ad3573791917106a932952f' --compressed Confirm the error is not there anymore.

    Description

      "lastattempt => Invalid response value detected: submissiongroup => Invalid response value detected: Invalid external api response: the value is "", the server was expecting "int" type"

      In a course without groups.

      When using following parameters on assignment creation:
      Students submit in groups: YES
      Require group to make submission: NO

      It also happens with users without groups (if the course have groups).

      Attachments

        Issue Links

          Activity

            People

              pferre22 Pau Ferrer
              pferre22 Pau Ferrer
              Juan Leyva Juan Leyva
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16