When downloading student quiz responses (under quiz settings:responses:download as csv/json), if the student response text contains a < sign in conjunction with some other characters, then the text of their response gets truncated from the < sign onwards.
For example, if the student's answer is (read italicised text only please):
if inputs["enemy_distance"]<10: return "Attack"
then it gets downloaded as
if inputs["enemy_distance"]
i.e. losing everything after and including the < sign.
Another example I saw:
if random.random()<mutation_probability got truncated to if random.random()
Some counterexamples I saw:
if random.random()>mutation_probability did not get truncated (i.e.greater than sign not affected)
if random.random() < mutation_probability did not get truncated (i.e. space before less than sign made bug disappear).
Note that the full text displays correctly in the quiz settings:responses screen. It's only when I download the text as csv or json that the bug manifests itself. These bugs affected the CodeRunner question-type answers, but may affect other question types too?
- has a non-specific relationship to
-
MDL-78342 Quiz Responses converts new line characters to 6 spaces
- Open
- is a regression caused by
-
MDL-72058 Remove HTML tags when exporting to Dataformats that don't support it
- Closed
- is duplicated by
-
MDL-74680 Export of quiz reports does not handle &
- Closed
-
MDL-79516 Extractor of test is broken for open question
- Closed
-
MDL-79576 L'export d'une réponse à un Quiz en CSV ou XLSX est partiel si la réponse contient un signe inférieur
- Closed
-
MDL-81980 Essay Question Type - Exported response text stripped incorrectly
- Closed
-
MDL-83130 In the quiz report in an answer export are all characters starting from the position of the less-than sign and a following character truncated
- Closed