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

Students can remove the file extension of their submission - breaks pdf conversion process

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as Admin.
      2. Create a Course.
      3. Enroll a Student in the Course.
      4. Create an Assignment activity.
        1. For 'Submission types' enable 'File submissions'
      5. Login as a Student.
      6. Upload a file (e.g. .docx) and submit the assignment.
      7. Go back to the Assignment.
      8. Edit the assignment.
      9. Click the file in the 'File submissions' panel
      10. Remove the .docx file extension from the 'Name' input field
      11. Press 'Update'
        1. make sure a pop up dialog is displayed and notifies the Student that the file extension has been modified during the file update process and request a confirmation for the update action.
      Show
      Login as Admin. Create a Course. Enroll a Student in the Course. Create an Assignment activity. For 'Submission types' enable 'File submissions' Login as a Student. Upload a file (e.g. .docx) and submit the assignment. Go back to the Assignment. Edit the assignment. Click the file in the 'File submissions' panel Remove the .docx file extension from the 'Name' input field Press 'Update' make sure a pop up dialog is displayed and notifies the Student that the file extension has been modified during the file update process and request a confirmation for the update action.
    • Workaround:
      Hide

      An Admin/Teacher can define 'Accepted file types' (e.g. file types that are supported by the document converter) in the assignment's settings page under 'Submission types'. This would disable the Students to upload or modify a file extension to something that is not supported by the document converter

      Show
      An Admin/Teacher can define 'Accepted file types' (e.g. file types that are supported by the document converter) in the assignment's settings page under 'Submission types'. This would disable the Students to upload or modify a file extension to something that is not supported by the document converter
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-60817-master-2
    • Story Points:
      1
    • Sprint:
      Activity Sprint 4, Activity Sprint 5

      Description

      If a student uploads an assignment then renames the file in the Moodle interface (removing the file extension) the document is not converted to pdf on the inline grading screen.

      Steps to recreate the problem:

      1. Log in as a student
      2. Submit an assignment (myassignment.docx)
      3. Click the file in the 'File submissions' panel
      4. Remove the .docx file extension from the 'Name' box (image 1)
      5. Press 'Update'
      6. Log in as a teacher
      7. Visit the assignment and press 'Grade' for the student
      8. The review panel (left) is blank (image 2)

      Students often use the 'Name' box as a title for their submission so it's quite common for students to remove the document file extension.

       

        Attachments

        1. image1.png
          image1.png
          116 kB
        2. image2.png
          image2.png
          81 kB

          Issue Links

            Activity

              People

              • Votes:
                10 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 30 minutes
                  1d 30m