Issue with Matlab Grader LTI after Moodle Upgrade

Issue with Matlab Grader LTI after Moodle Upgrade

by Nikola Bogosavljevic -
Number of replies: 2

Hi,

we are facing an issue and hope someone can help!

Here is a short description:

We have Matlab Grader LTI integrated in our Moodle system. Before upgrading Moodle (previous version 4.3), everything worked fine. After upgrading to version 4.5, it no longer works.

When a user opens the activity, nothing loads.

In the console, some errors appear (screenshot attached).

We contacted Matlab support, but they couldn’t help us much.

That’s why I´m reaching out to this community in the hope someone has already experienced this issue and can suggest a solution.

The strange thing is that our other LTI providers (such as Pearson) are still working normally.

Thank you very much for any help!

Best regards,
Nikola

Attachment Console.png
Attachment Matlab Activity.png
Average of ratings: -
In reply to Nikola Bogosavljevic

Issue with Matlab Grader LTI after Moodle Upgrade

by Jake Dallimore -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Nikola,

Any chance you could also include the iframe's HTML tag, which includes the permissions? You'd need to find it in the page using the element picker in dev tools, and it'd look something like:

<iframe id="contentframe" height="600px" width="100%" src="http://localhost/testing/ltix/launch.php?id=2" allow="microphone http://localhost; camera http://localhost; geolocation http://localhost; midi http://localhost; encrypted-media http://localhost; autoplay http://localhost" allowfullscreen="1" style="height: 602.5px;"></iframe>
 
Also might be good to confirm whether the Moodle site itself is returning any Permissions-Policy header, which I believe can interact with the iframe permissions by potentially providing an empty allowlist, meaning despite the attempt to grant iframe permissions, it won't receive any. I'd probably need to do some more reading myself on this, as I'm certainly no expert myself either, but it's something to check at least.

Cheers,
In reply to Jake Dallimore

Issue with Matlab Grader LTI after Moodle Upgrade

by Nikola Bogosavljevic -
Hi Jake,

iframe is there:

We assume there is an issue with Matlab. When we check the network, we see that there have been some GET and POST requests, and the last call was to “https://learningtool.mathworks.com/lti/redirect”, which returned an empty response — i.e. neither content nor an error message.

I thought that maybe someone else has had similar issues with LTI and might have found a solution.

Thank you!

BR