Totara Learn Open Discussions

H5P Plugin - potential RACE condition

 
Jon Evans
H5P Plugin - potential RACE condition
by Jon Evans - Tuesday, 17 May 2022, 8:08 AM
Group Partners

H5P Plugin - potential RACE condition

As do many partners, at Kineo we use a Totara-friendly version of the Moodle H5P plugin to extend the content authoring capability within courses.

We have found an issue in the plugin that can cause a learner's initial completion to fail to set a grade. In this event, the grade is only set if the learner repeats the activity and completes for a second time.

The issue is caused by the Answered and Completed data being received out of order. This is avoided in the built-in version for Moodle (post 3.8) as Moodle only listens for the Answered data.

Kineo has developed a fix for this issue which can be found on Github:

https://github.com/h5p/moodle-mod_hvp/issues/388

https://github.com/h5p/moodle-mod_hvp/pull/445