Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.10.8, 3.11.4
-
None
-
MOODLE_310_STABLE, MOODLE_311_STABLE
Description
Hi,
we experienced the following issue.
Using an Assign activity, configured as follow:
- Submission types: File submissions
- Feedback types: Annotate PDF
When you try to grade file submitted as Access controlled link with a repository that allows Access controlled links (ie. Google Drive, ...), you get a blank page.
NOTE: using the same Repository, if you submit the file as Internal, it works fine.
We analyzed the issue and it seems that external files are all stored with the same content hash, referencing a blank empty file in filedir.
In file /mod/assign/feedback/editpdf/classes/document_services.php the function list_compatible_submission_files_for_attempt iterates over submitted files in order to collect files to combine. For external files it uses the "stored blank file" instead of the "original external file".
How to reproduce:
- Configure a Google Drive repository, enabling Access controlled links (as described https://docs.moodle.org/311/en/Google_Drive_repository).
- Create a "test course"
- Create a test Assignment inside the "test course", configured as follow:
- Submission types: File submissions
- Feedback types: Annotate PDF
- Enrol yourself as Student in "test course"
- Switch role to Student (using feature Switch role to...)
- Enter the newly created assignment and submit a PDF file using Google Drive repository (ensure you are submitting the file as link)
- Switch back to normal role
- Enter the assignment and view all the submissions
- Grade your submission
- It should display a blank page in Annotate PDF frame
Giorgio