-
Bug
-
Resolution: Fixed
-
Critical
-
2.7.7, 2.8.5
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-49864-master -
-
Team '; drop tables Sprint 9
I have discovered a bug where a student viewing an annotated PDF from within the online Moodle viewer, where the annotated PDF has unsaved pen annotation, cannot see any pen annotation (both previously saved and draft). However when downloading the annotated PDF file from Moodle, the annotations are shown correctly (the previously saved pen annotations are visible, but the draft are not).
This issue does not affect comment boxes. Previously saved comment boxes are always visible , regardless of the draft status of other comment boxes.
This issue is present when viewed as a student from the gradebook or a tutor/non-primary lecturer/etc from the list of students to grade (mod/assign/view.php?id=xxx&action=grading)
I have reproduced this bug consistently on both Moodle 2.7 and 2.8
Steps to reproduce:
- Create an assignment activity where students are allowed to submit a file and the marking workflow is enabled
- As a student, submit a PDF file for the assignment
- As a tutor (or higher), begin grading the assignment.
- From the grading page, click "Launch PDF editor" to begin annotating the PDF
- Add a comment box and draw something with the pen tool
- Exit the PDF editor and click "save changes"
- For the same student, continue grading the assignment and launch the PDF editing tool.
- Add another comment box and draw some more with the pen tool
- Exit the PDF editor
- Either:
- Click the browser back button
- Click the "Cancel" button at the bottom of the page
- While viewing all submitted assignments (not the page for grading the individual student), select the entry for the student and use "with selected" drop down box to select "set marking workflow state", the click the "Go" button.
- Changed the marking workflow state to "released"
- As the student, visit the gradebook and view the feedback for your assignment.
- Click the "View annotated PDF" button. You will see:
- The first comment box (which was saved) but not the second comment box (which is still in draft state). This is the correct behaviour
- No pen annotation is visible, despite the fact that some should be in the draft state (thus invisible), while some was explicitly saved (this should be visible). This is incorrect behaviour.
- Close the PDF viewer and download the annotated PDF from the link provided.
- Open the downloaded PDF file, you will see all of the non-draft content as expected.