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

Invalid response value detected: submissiongroup on mod_assign_get_submission_status

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-54991-master

      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

              Assignee:
              pferre22 Pau Ferrer
              Reporter:
              pferre22 Pau Ferrer
              Peer reviewer:
              Juan Leyva
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16