-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.7.6, 3.11.4, 4.2.6, 4.3.3, 4.4
-
MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE
When a student submits a PDF for an assignment but then removes it again, the teacher can still see and grade that PDF.
The submitted PDF file gets deleted but the images generated from each page of the PDF are still there so the PDF is effectively still there from the teacher's point of view.
Edit:
Steps to reproduce
- Create a course and enrol a student.
- Create an assignment with file submission and file annotations enabled.
- As a student, submit a pdf for the assignment.
- Run the following query and note the ids associated to the file submission(should be of component type user)
select * from mdl_files order by id desc
- As an admin/teacher, go the assignment and submission and file annotation interface.
- Run the query from #4 and note down the files created as part of triggering the annotation plugin(should be of componentn type assignfeedback_editpdf)
- Note down the pdf and the associated image generated.
- As a student delete the pdf and note it has been removed from view from both the students view and when viewing the grading interface as a teacher.
- Rerun #4 and note the user specific file has been deleted
- As a teacher, Go to the grading UI and note the pdf doesn't exist in the 'File Submissions' column and 'Annotate PDF' is empty.
- Click the 'Grade' button and note the deleted file comes up for grading. The generated image still exists in the db. If you go to the location described in the contenthash you can still view the generated image.
- has a non-specific relationship to
-
MDL-73044 Create CLI Script / Scheduled Task to remove orphaned assignfeedback_editpdf files
- Closed
- has been marked as being related by
-
MDL-69570 Reset and delete all submissions doesn't delete the assignfeedback_editpdf files
- Closed
- is duplicated by
-
MDL-74931 Assignment - "submitted for grading" but no file
- Closed