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

LTI return.php should optionally require a instanceid

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course.
      2. Create a External Tool activity. In the activity settings, use the following for the Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php
      3. Take note of both the course ID and the External tool instance ID (in the mdl_lti table).
      4. Craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=Y&lti_errormsg=Testing&unsigned=1
        • Replace X with the course ID
        • Replace Y with the LTI instance ID
      5. After navigating to that URL, you should see the LTI activity instance name as a heading with some text below it.
      6. Now craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=0&lti_errormsg=Testing&unsigned=1
        • Replace X with the course ID
      7. After navigating to that URL, you should no longer see the LTI activity instance name as a heading. Instead, just the error text.
      Show
      Create a course. Create a External Tool activity. In the activity settings, use the following for the Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php Take note of both the course ID and the External tool instance ID (in the mdl_lti table). Craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=Y&lti_errormsg=Testing&unsigned=1 Replace X with the course ID Replace Y with the LTI instance ID After navigating to that URL, you should see the LTI activity instance name as a heading with some text below it. Now craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=0&lti_errormsg=Testing&unsigned=1 Replace X with the course ID After navigating to that URL, you should no longer see the LTI activity instance name as a heading. Instead, just the error text.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45767_returnInstanceid

      Description

      Not all tools will have a instanceid when returning to Moodle. Update mod/lti/return.php to optionally accept an instance ID.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14