Quiz

 
 
Picture of Peter Möbius
Re: Quiz 2.4 - not all essay answers written to database
 

Hi again,

Apologies for the delay in following through - marking season...

I think I have located the problem and can reproduce it. Moodle logs didn't help (nothing out of the ordinary), but marking did. The students had to respond to an email as writing prompt and include basic headers in their reply. The prompt looked like this:

To: John Doe <johndoe@acme.com>

From: Jane Doe <doe@xyz.com>

Subject: Lore ipsum

The replies of the stundents who complained (and sadly several more) were truncated:

To: Jane Doe

IMHO this points to a character escaping issue with "less" and "more." I found that the answer was completely truncated if there was no closing "waka" or the email address (if properly enclosed) disappeared. The reply format was plaintext (no HTML editor).

I hope this helps, and the issue can be confirmed and fixed.

Best regards,

Peter

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Quiz 2.4 - not all essay answers written to database
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Oops! yes that is a bug. I am somewhat surprised that no-one else has hit this problem before, since it is pretty serious. I have created a bug report MDL-37847 to track solving it.

I am very sorry about this. The good news is that I am 99% sure that response the student entered is correctly stored in the database. The bug is only with the way it is displayed. So, once the bug is fixed, all will be will.

 
Average of ratings: -
Picture of Peter Möbius
Re: Quiz 2.4 - not all essay answers written to database
 

I'm also surprised as you'd expect massive problems with answers that involve code. Maybe everyone else uses the HTML editor, which may not be affected(?) I'll wait for the fix, but just to make sure I can assign proper grades in the end: Which table would hold the full answer if it is still there so I can manually extract if necessary? (My students need their grades soon as they determine whether they qualify for an exchange semester.)

Thx and regards,

Peter

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Quiz 2.4 - not all essay answers written to database
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

This database query should let you get at the raw data: http://docs.moodle.org/dev/Overview_of_the_Moodle_question_engine#Detailed_data_about_an_attempt (you may need to tweak it a bit.)

 
Average of ratings: -
Picture of Peter Möbius
Re: Quiz 2.4 - not all essay answers written to database
 

Great, thanks!

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Quiz 2.4 - not all essay answers written to database
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Acutally it is not great. I was just working on the fix, and I discovered that the problem happens the the student's response is received at the server, not at output time, so the data is gone. Sorry about that. I am just trying to think how I can write an automated test for this, so we can ensure it does not break again in future.

 
Average of ratings: -
Picture of Peter Möbius
Re: Quiz 2.4 - not all essay answers written to database
 

Pity, but we'll live through it. I'll just go to plan B and assign "temporary" grades based on students' performance on the other tasks. The correlation is quite high. Should be enough to clear them for the exchange semester, and they'll get another shot at the exam for the grade when they get back.

Slightly off topic: @Tim and all contributors: I really appreciate your help and great work on the module. Moodle quiz has been an extremely dependable workhorse since I started using it in 2005, freeing up valuable time for actual teaching and concentrating on quality examinations. Thank you very much! (That needed to be said.)

 
Average of ratings: -