Hi,
I've found an error that has to do with old drafts still being loaded.
I was able to reproduce it directly in Orbeon, no integration was used.
Summary: After I add a new field to a form and publish the new form version, everybody who had a draft saved for that form will be presented with the option of using the draft, but will be displayed an incomplete form and encounter an error if they try to use it.
Prerequisite: MySQL db, draft auto-save enabled, 5 sec interval
Steps:
1. Create a form with one field
2. Open the form for filling, write something in the field, wait for the autosave to occur
3. Leave form
4. Edit form and add a second field
5. Open the form again for filling
--> Expected behavior (simple solution): will not say anything about draft because of different form version
6. You are asked if "start from scratch" or "open auto-saved draft"
7. Click "open auto-saved draft"
--> Expected behavior(complicated solution): opens up the form with field 1 filled in and field 2 blank, because it didn't exist when the draft was saved
--> Actual behavior: opens up the form with field 1 filled and field 2 missing
--> Actual behavior: throws error 5 secs after opening draft because it fails to auto-save draft
Best regards,
Sorin.