TeachmanLab / MT-Java

Repo for parts of MindTrails study sites coded in the Java framework, such as the study assessment pages, menu, and progress pages
https://mindtrails.virginia.edu/calm/public/about
MIT License
7 stars 16 forks source link

Wrong form exception in listed in participant 101's participant record #310

Closed clmckinley closed 1 year ago

clmckinley commented 1 year ago

Spanish participant 101 has a couple of "WrongFormException" errors listed with the description The current task for this participant is : recognitionRatings however, they submitted the form:Comorbid.

image

clmckinley commented 1 year ago

This appears to happen when you submit a form that the system wasn't expecting. In this case the comorbid form was submitted, but the system expected the recognitionrating form to be submitted.
I was able to reproduce this problem by creating a user (102) that had the same setup as 101. When i logged in it took me to the reconitionratings form. I submitted that form and was taken to the covid19 form. I then clicked the back button on my browser to go back to the reconitionratings form. If i re-submit the reconitionratings form then i get the error that was listed.

Fix: The user is told there was an error but can click the continue button at the bottom of the error page which took me to the next (correct) form. I would also be taken to the correct form if i log back in.

clmckinley commented 1 year ago

We will monitor to see if this is a common problem for users, but in the meantime i will close the issue