-
Notifications
You must be signed in to change notification settings - Fork 159
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
Unable to update entity using XLSForm without entity label #551
Comments
Another possibility: in the form without a |
this is really weird. i'm struggling to recreate the issue with a test, but uploading the same forms/submissions as you specified, i was able to crash my dev central, so, uh, hmm. The specific trace looks like this so I'll be able to dig in and figure it out. Likely it's cause of something you mentioned above, of the field type being
|
Interesting! I'm able to write a test that throws an error on the same line that you mentioned. I wonder how the update error on staging got past |
When I create a submission to the |
I was able to reproduce the bug, I just needed to have a different form def in addition to a different submission. If the This wasn't an issue earlier when new entities always had labels, so there was always a child element, which always made it type In PR getodk/central-backend#1053 I changed the parsing code to not care if the entity tag is |
I have an entity list of trees. I have two forms to update the trees. One form updates the trees's label in addition to properties, while the other only updates properties. In the
entities
sheet of the XLSForm, the first form has alabel
column, while the other does not. That's the only difference between the forms (other than settings like form ID and title).I'm able to use the form that has the
label
column to update a tree. However, I'm not able to do so with the form that doesn't have thelabel
column. When I submit a submission to that second form, I see anentity.error
in the submission feed: "Required parameter dataset missing."Looking at the submission XML, I see that there is an
<entity>
field with adataset
attribute. However, the<entity>
field is completely empty. (The XML is<entity .../>
.)I know we looked at a similar issue in #527. I'm not sure what the difference is. My theory is that it's the difference between an empty
<entity>
field and an<entity>
field with only whitespace (<entity> </entity>
).URL of the page
Central version shown in version.txt
The text was updated successfully, but these errors were encountered: