Bug Report
Extracted metadata is being saved to the session, which causes an error when the data saved to Flask's session is larger than 4 KB. Any data that exceeds 4 KB is lost from the session, which causes an error when submitting data stored in session to Invenio.
To Reproduce
Start flask app, upload and extract metadata, then error occurs when submitting data to BioSimDB
CLI command used
flask --app biosimdb_interface run --debug -p
5002
Actual output
werkzeug/sansio/response.py:232: UserWarning: The 'session' cookie is too large: the value was 4666 bytes but the header required 26 extra bytes. The final size was 4692 bytes but the limit is 4093 bytes. Browsers may silently ignore cookies larger than this.
dump_cookie(
Fix
stop storing large objects in session cookie, move to tmpdir
Bug Report
Extracted metadata is being saved to the session, which causes an error when the data saved to Flask's session is larger than 4 KB. Any data that exceeds 4 KB is lost from the session, which causes an error when submitting data stored in session to Invenio.
To Reproduce
Start flask app, upload and extract metadata, then error occurs when submitting data to BioSimDB
CLI command used
Actual output
werkzeug/sansio/response.py:232: UserWarning: The 'session' cookie is too large: the value was 4666 bytes but the header required 26 extra bytes. The final size was 4692 bytes but the limit is 4093 bytes. Browsers may silently ignore cookies larger than this. dump_cookie(Fix
stop storing large objects in session cookie, move to tmpdir