-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Question data column name can collide with reserved names in JSON representation of submission #807
Comments
Thanks. It's not actually an API problem but rather, depending on how you look at it:
kobocat/onadata/apps/viewer/models/parsed_instance.py Lines 263 to 285 in 8b81f3e
It's been this way for over a decade, so as plainly unfortunate as it is, it's clearly not a major stumbling block for people using the tool.
I think this could be done in the near term. The list of these reserved names is well defined. |
Description
It's possible to collide question data column name with values in the submission data API
Steps to Reproduce
_attachments
(probably other colliding values work too)Expected behavior
Either _attachment is accepted and works or is rejected/changed
Actual behavior
The answer to the _attachment question does not show in the submissions data api at all. And this breaks the frontend when viewing details of the submission.
Possible solutions
The text was updated successfully, but these errors were encountered: