-
Notifications
You must be signed in to change notification settings - Fork 90
Max-size determination and storage algorithm to be hardened. #341
Comments
Also check if HEAD request to /submission passes credentials (Enketo Legacy doesn't). |
That bug is not present in Enketo Express |
Is this related to |
Yes. Enketo checks this too.
Revolutionizing data collection since 2012. Enketo https://enketo.org/ | LinkedIn |
Does enketo do the upload in batches? |
Yes
Revolutionizing data collection since 2012. Enketo https://enketo.org/ | LinkedIn |
issues found (but no actual bugs):
|
The only 'bug' was the fact that under certain very rare circumstances the default max submission size gets stored in db and won't update until the form changes. That rare circumstance is: the OpenRosa server does not serve the X-OpenRosa-Accept-Content-Length header (or does not return a response to HEAD /submission) at exactly the moment the form is cached (or re-cached). |
closes kobotoolbox#341 - never store default max size in db (offline-capable views) - always attempt to obtain max size from server if not stored in db (offline-capable views) - only set default max size at 1 point in code (instead of 3) - do not make submission/max-size request during previews without enketo ID - log error to console if OpenRosa server does not return X-OpenRosa-Accept-Content-Length header
Needs to check regularly for the max-size that is supported by the server, and especially if the maxSize value stored in indexedDb is
null
for any reason.It might be good to not store the default size in the db (if this is done currently - it might not be).
Investigate why max-size retrieval often fails (or maybe for certain OpenRosa servers?)
The text was updated successfully, but these errors were encountered: