-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash of the app after sending a draft version of trees update form #6109
Comments
Here is a callstack from logcat
|
@WKobus Could you try and reproduce it the way Callum suggested? If not, I'll do it next week |
@seadowg Yeah, I'm not selecting a tree in "Select a tree to update" question, since there isn't any, I've tried opening this form in Enketo and there is loading error. |
@lognaturel we should discuss how Collect should behave in this situation (an empty entity list). Granted this form should probably make the "Select a tree to update" question required (it's broken otherwise), but we should definitely avoid a crash. My thinking is that filling this form should work given the fact that we're supporting empty/missing entity lists. |
Does the issue happen at form finalization time because it tries to update an entity with a blank entity id? I agree that this is mostly a form design issue. I think we should probably catch all of these kinds of finalization issues, maybe log them (something like "failed to update entity with id "" from submission "2345-23423..."), and still finalize/submit. It feels like this class of issue is best dealt with on the server where there is already specialized error handling. We could even consider showing some kind of warning message but I don't think we should block submission. |
Agreed! I'll update the issue description. |
ODK Collect version
the master version d27f63e
Android version
10,14
Device used
Redmi 9t, Pixel 7a
Problem description
There is a crash after sending a submission of a draft version of a trees update form.
https://test.getodk.cloud/#/projects/530/forms/trees_update/draft/testing
Steps to reproduce the problem
Trees update.xlsx.txt
Expected behavior
The form should be finalized/submitted successfully and no local entity should be created.
Other information
The issue doesn't occur in the store version.
The text was updated successfully, but these errors were encountered: