Closed pikaju closed 4 years ago
Hi. Thanks for the bug report. Sadly it does look like you've discovered a long standing bug in the model - the current CorrectResponse model class only expects to be a child of ResponseDeclaration, which isn't the case when it appears in an AssessmentResult.
Hey, thank you for your answer. Just to clarify: Is this a known bug that won't be fixed, or will you fix it in the near future? And, if it won't be fixed, do you think it would be easy for us to fix it ourselves? How should we go about doing so? Are you open for pull requests?
I've pushed a hopeful fix to this to a new branch: issue-77.
However this part of the code is pretty old / cold! (It comes from the original JQTI back in 2009/2010, and my last significant refactoring of this was 2013.)
So I'm no longer familiar with how it all fits together and I'm therefore a bit wary of merging this back into the master branch without doing a bit more testing.
@Pikaju: Could you maybe try building this branch and see if it now works for you? Alternative I can build a replacement JAR for you to try out.
It does appear to be working now, thank you so much!
Thanks for testing! I've now merged this fix into the master branch, and it will appear in the next production release.
I use the following code to load a QTI file exported from OpenOLAT containing an assessmentResult:
This throws the following exception:
Is loading AssessmentResults not supported by QTIWorks?