-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.7
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-74911-master -
The problem
When grading assignments using the PDF annotation method (assignfeedback_editpdf) if the submission requires conversion and it has not already been converted, when polling the conversion state the ajax call will initiate a document conversion. If this is a large document, it can take many minutes to convert.
This would be OK except that it holds the user's session unnecessarily, meaning they cannot use the site (they will get 'unable to obtain session lock') until this conversion is complete.
From the perspective of the user, they should be able to open documents and wait for them to convert while browsing other areas of the site for e.g. in another tab.
How to reproduce
- Ensure cron is OFF - this disables the scheduled conversion task
- Create an assignment, and upload a large file submission that requires conversion e.g. a csv
- Open the submission for grading in multiple tabs, this will cause a session lock while the assignment is converted in the users session (since it was not pre-converted via the scheduled task)
The ideal solution / end goal
- User is able to open an assignment in another tab / open it for grading and continue browsing side
- User should also be able to open multiple assignments at once that need converting, they should all convert and complete independently
- has been marked as being related by
-
MDL-73317 Detect and add debugging for when the session is changed after it has been closed
- Closed