Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68943

Converted PDF file does not update when submission file is overwritten

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.12, 3.7.6, 3.8.3, 3.9
    • Fix Version/s: None
    • Component/s: Assignment, Files API
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      When using a fileconverter and overwriting a submission file in the file picker, the new file will not be converted to a pdf. Instead, the old pdf will be displayed when grading.

      If you delete the old file before uploading the new one, the new file will be properly converted and displayed when grading.

      I found the bug while using fileconverter_onlyoffice (https://moodle.org/plugins/fileconverter_onlyoffice). However, to ensure that it isn't the plugins fault, I also tested it with a very simple dummy-converter that is attached to this issue. It just logs every conversion request into moodledata/converter.log.

      Reproduction steps:

      • Unzip fileconverter_converterlog.zip into /files/converter and install the plugin.
      • Enable only the Converterlog in Site Administration - Plugins - Document converters - Manage document converters.
      • Create a course.
      • Enrol yourself as teacher and student.
      • Create an assignment with "Annotate PDF" as Feedback type (If the option isn't available, install ghostscript).
      • Create a textfile and put some content into it.
      • Add the textfile as your submission for the assignment.
      • Click "Grade".
      • Look into <moodledata>/converter.log. A line with your filename and filecontent was generated.
      • Edit the textfile to some other content.
      • Go back to the assignment and click on "Edit submission".
      • Drag the edited textfile into the filepicker.
      • Click "Overwrite".
      • Click "Save changes".
      • Click "Grade".
      • Look into the converterlog. There is no new line there, so the changed file would not have been converted.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            justusdieckmann Justus Dieckmann
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: