Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1.1
-
Fix Version/s: 3.1.2
-
Component/s: Enrolments, External Tool (IMS-LTI), LTI provider
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_31_STABLE
-
Fixed Branches:MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-55323-master -
Pull Master Diff URL:
Description
To reproduce:
On a Moodle 3.1+ site (SITE A)
- Enable the LTI authentication plugin. (Site administration ► Plugins ► Authentication ► Manage authentication)
- Then go to Site administration ► Plugins ► Enrolments ► Manage enrol plugins and enable Publish as LTI tool
- Create a course. Optionally, add some activities.
- Under Course administration, click Enrolment methods
- Under Add a method select Publish as LTI tool.
- Enter a Custom instance name
- Under Tool to be published select Course
- Click Add method.
- Under Course administration, click Published as LTI tools. Take note of the launch URL and secret to be used later.
On another Moodle 3.1+ site (SITE B)
- Log in as admin.
- Go to Site administration ► Plugins ► Activity modules ► External tool ► Manage tools
- Click configure a tool manually.
- Enter a Tool name.
- Enter the launch URL of the course in SITE A in Tool base URL/cartridge URL.
- Enter the shared secret.
- Click Save changes
- Check your web server's error log (e.g. /var/log/apache2/error.log)
- Expected:
- There should be no error log shown.
- Actual:
- The following error logs are being shown:
Default exception handler: A required parameter (context_id) was missing Debug:
Error code: missingparam- line 495 of /lib/setuplib.php: moodle_exception thrown
- line 552 of /lib/moodlelib.php: call to print_error()
- line 30 of /enrol/lti/tool.php: call to required_param()
- The following error logs are being shown: