google / paco

The Paco behavioral science mobile research platform
http://www.pacoapp.com/
Apache License 2.0
327 stars 93 forks source link

JSON export functionality does not work for strings longer than 497 characters #1514

Open BramBonne opened 8 years ago

BramBonne commented 8 years ago

When exporting data from the Paco datastore, answer strings get cut off after 497 characters. Including the ellipsis that are appended, the data seems to be limited to 500 characters.

This is expected behavior for the web interface, but not for the export functionality.

BramBonne commented 8 years ago

It seems that this limit is imposed during upload, as implemented in EventJsonUploadProcessor.java, lines 246-250. Is there a technical reason for limiting an answer to 500 characters during upload, or is this to make sure a user can not overburden the datastore by submitting long responses?