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

Analysis quiz report produces a very wide tables if correct answer doesn't contain spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5, 2.2.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a shortanswer question with a very long unbroken correct answer, like
      0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

      2. Add this question, possibly with some others, to a quiz.

      3. Attempt the quiz as a few different students, give a very long unbroken response. at least once.

      4. As teacher, check all the quiz reports (Admin -> Results in 2.5+, Navigation -> Results in 2.4). Make sure the very long responses don't break the layout too much. Make sure that in the statistics report, you click through to the response analysis for the shortanswer question created in step 1.

      Show
      1. Create a shortanswer question with a very long unbroken correct answer, like 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 2. Add this question, possibly with some others, to a quiz. 3. Attempt the quiz as a few different students, give a very long unbroken response. at least once. 4. As teacher, check all the quiz reports (Admin -> Results in 2.5+, Navigation -> Results in 2.4). Make sure the very long responses don't break the layout too much. Make sure that in the statistics report, you click through to the response analysis for the shortanswer question created in step 1.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Steps to reproduce:
      1.Create a shortanswer question with a big 100% graded answer without spaces, something like

      abcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdklkabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdjkabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdjkjkabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdlkjabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdlkjabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdlkjabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdlkjabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsdlkjabcasdsadasdgksjdhgfkjasgdfkjasghfkajshgdfkajshgdfkjsd

      (a real case was a regular expression from inherited question type, for example
      [\s\t\n\r]int[\s\t\n\r]+summ[\s\t\n\r]([\s\t\n\r]int[\s\t\n\r](*[\s\t\n\r](Array|)|(|[\s\t\n\r]+Array)[\s\t\n\r][[\s\t\n\r]])[\s\t\n\r],[\s\t\n\r]int[\s\t\n\r](|[\s\t\n\r]+size)[\s\t\n\r])[\s\t\n\r];[\s\t\n\r]*
      2. Login as student and make 1-2 attempts on this question
      3. Login as teacher and go to question analysis report page.
      You'll see that all answer displayed in the table cell as one string, making a very wide column that results in quite poorly usable table.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13