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
A bulk uploader could potentially upload data for non existent survey #230
Comments
What happened is that a survey was created, used for training, and then deleted from the dashboard, including all data. After that, data from the phone that was used to collect the data was resubmitted using bulk upload. This leads to data being submitted for which there is no corresponding survey. |
code reviewed & correct |
on the UI it appears that I can upload data zips for a survey that doesn't exist on sandbox, but in the web console I also see "syntax error" after each POST @iperdomo can you clarify this? |
@caetie yes, the only way to analyze if the survey definition exists is by uploading and processing the file.
Previously this lead to a NullPointerException (NPE) and kept the task running forever. What we did is just to avoid this error. |
@caetie if you found another (but related) error, we should log an issue. Checking the logs in
This means that you tried to upload a single zip file? The bulk uploader expects a collection of files, combined in a single zip file, e.g. the whole surveyal folder. |
I dragged in multiple survey zips to the Bulk Upload window I knew had no matching survey on sandbox. They were all .zips. This is how we designed this feature, to handle one or more .zip or .jpg files. |
This scenario leads to a
java.lang.NullPointerException
and makes the task failed that needs to be rescheduled.The text was updated successfully, but these errors were encountered: