numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

When an attempt was reopened after a browser update, it was a mixture of new and resumed attempts #126

Closed christianp closed 3 months ago

christianp commented 3 years ago

A student using Chrome 87 started a new attempt and entered some answers, then their browser updated itself. When it restored the session, the page reopened. Numbas appears to have started as if in a new attempt, generating each question from scratch. The student then reloaded the page properly, which applied the saved answers from the original attempt.

The SCORM API should use the datamodel saved in localstorage to override whatever's embedded in the page. I wonder what caused that not to happen in this case.

To reproduce, it might be enough to start an attempt, then force the LTI server to always serve the "run attempt" page as if starting a new attempt, then reload the page. If not, force-closing the browser might be enough to make it restore the session.

christianp commented 3 months ago

I think this shouldn't happen any more, now that the SCORM data model is fetched by JS instead of embedded in the page.