kobotoolbox / kobocat

Our (backend) server for providing blank forms to Collect and Enketo and for receiving and storing submissions.
BSD 2-Clause "Simplified" License
117 stars 127 forks source link

Do not enforce type validation in the submitted data #860

Open jnm opened 1 year ago

jnm commented 1 year ago

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: https://github.com/kobotoolbox/kobocat/blob/d79b0fdcb38949a250d4881448f9642a52f6810d/onadata/apps/logger/models/instance.py#L310

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