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

Online text assignment submissions generate a blank HTML document for grading when no text is entered.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Pre-requisites
      1. Make sure that a document converter is installed and working on your site (i.e. Unoconv)
      2. Ensure that ghostscript is installed and configured in the pathtogs admin setting
      Setup
      1. Create a course
      2. Enrol 4 students into the course
      3. Enrol 1 teacher into the course
      4. Create a new assignment:
        1. Under "Submission types", ensure that the following are enabled:
          1. "Online text"
          2. "File submissions"
        2. Under "Feedback types", ensure that only the following are enabled:
          1. "Annotate PDF"
      Testing
      1. Login as the first student
      2. Add a submission with:
        1. only the PDF file that is attached to this tracker issue
          Note: Do not enter any text in the online text form field
      3. Log out
      4. Login as the second student
      5. Add a submission with:
        ## the PDF file that is attached to this tracker issue
        1. Add "Sample text" as the text in the online text form field
      6. Log out
      7. Login as the third student
      8. Add a submission with:
        1. the text "Another sample text" in the online text form field
          Note: Do not add any files to the submission
      9. Log out
        Note: Do not create a submission as the forth student
      10. Login as the teacher
      11. Navigate to the assignment
      12. Follow "View all submissions"
      13. Click "Grade" on the row for Student 1
        1. Verify that there is only 1 page available ("Page 1 of 1" shown in top left corner)
        2. Verify that the page content has the title "Assignment Submission"
      14. Click "Grade" on the row for Student 2
        1. Verify that there are 2 pages available ("Page 1 of 2" shown in top left corner)
        2. Verify that one of the pages has content with the title "Assignment Submission"
        3. Verify that other of the pages has content "Sample text"
      15. Click "Grade" on the row for Student 3
        1. Verify that there is only 1 page available ("Page 1 of 1" shown in top left corner)
        2. Verify that the page has content "Another sample text"
      16. Click "Grade" on the row for Student 3
        1. Verify that there is only 1 page available ("Page 1 of 1" shown in top left corner)
        2. Verify that the page is entirely blank
      Show
      Pre-requisites Make sure that a document converter is installed and working on your site (i.e. Unoconv) Ensure that ghostscript is installed and configured in the pathtogs admin setting Setup Create a course Enrol 4 students into the course Enrol 1 teacher into the course Create a new assignment: Under "Submission types", ensure that the following are enabled: "Online text" "File submissions" Under "Feedback types", ensure that only the following are enabled: "Annotate PDF" Testing Login as the first student Add a submission with: only the PDF file that is attached to this tracker issue Note: Do not enter any text in the online text form field Log out Login as the second student Add a submission with: ## the PDF file that is attached to this tracker issue Add " Sample text " as the text in the online text form field Log out Login as the third student Add a submission with: the text " Another sample text " in the online text form field Note: Do not add any files to the submission Log out Note: Do not create a submission as the forth student Login as the teacher Navigate to the assignment Follow " View all submissions " Click " Grade " on the row for Student 1 Verify that there is only 1 page available (" Page 1 of 1 " shown in top left corner) Verify that the page content has the title "Assignment Submission" Click " Grade " on the row for Student 2 Verify that there are 2 pages available (" Page 1 of 2 " shown in top left corner) Verify that one of the pages has content with the title "Assignment Submission" Verify that other of the pages has content "Sample text" Click " Grade " on the row for Student 3 Verify that there is only 1 page available (" Page 1 of 1 " shown in top left corner) Verify that the page has content "Another sample text" Click " Grade " on the row for Student 3 Verify that there is only 1 page available (" Page 1 of 1 " shown in top left corner) Verify that the page is entirely blank
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-62643-master

      Description

      After moodle 3.2 released a new feature "Assignment Annotating" , which need a  installation of ghostscript or unoconv. So when students comes and submit this assignment with file submission and without online text then the page showing 1of2. First page as empty then in second page with a pdf file.

      The above case need to be resolved with only file submission page i.e single page.

      Summary: Assignment submissions from the online text editor should not generate a submission file for marking if the submitted text is empty.

       

        Attachments

        1. Submission.pdf
          16 kB
        2. test-13.png
          test-13.png
          51 kB
        3. test-14.png
          test-14.png
          36 kB
        4. test-15.png
          test-15.png
          38 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18