Skip to content
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

Do not enforce type validation in the submitted data #860

Open
jnm opened this issue Jan 23, 2023 · 0 comments
Open

Do not enforce type validation in the submitted data #860

jnm opened this issue Jan 23, 2023 · 0 comments

Comments

@jnm
Copy link
Member

jnm commented Jan 23, 2023

Forms can have many versions. KoBoCAT does not know about any version except the latest, and yet it de-facto enforces type validation for at least geopoint because it will fail and return a 500 if non-conforming data is submitted:

lat, lng = geometry[0:2]

KoBoCAT should accept everything—within reason, of course, given security and performance considerations. Dealing with non-conforming data based on the type should be the purview of KPI or formpack.

Discussion: https://chat.kobotoolbox.org/#narrow/stream/6-Support/topic/500.20error.20with.20invalid.20GPS.20coordinates

@jnm jnm added the bug label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants