-
Bug
-
Resolution: Fixed
-
Major
-
4.1 regressions, 4.1, 4.2
-
HQ Sprint 1.3 Moppies
When you download all submissions from an assignment as a ZIP file, in current 4.0 and earlier it was possible to keep the directory structure of the ZIP file, put feedback files in it and use it for bulk upload of feedback files.
In 4.1 the directories miss the trailing underscore in the directory names. But they seem to be expected by the upload processor. So you can't upload feedback files in that easy way (manually renaming the directories helps, but users won't be very happy about that).
Steps to reproduce:
- Create a course
- Enrol a student
- Create an assignment with feedback types "Offline grading worksheet" and "Feedback files" enabled.
- Create a submission for the student
- Visit the assignment as a teacher and download all submissions as a ZIP file with "Download submissions in folders" enabled.
- Add a file in the folder belonging to the student.
- Upload the modified ZIP file with "Upload multiple feedback files in a zip"
- You will see "No changes"
Expected behavior here is to see the added file.
The patch modifies the importer to accept paths without the trailing underscore. An alternative solution could be to add the trailing underscore in export (this also would improve backwards compatibility with moodle < 4.1).