Open aedwardg opened 3 years ago
I think one of the cookies is trying to store the CSV contents but the cookies can only have a max size of 4096 bytes or under 4096 characters
https://stackoverflow.com/a/9474262
Ok I think it starts at line 21 of app/controllers/imports_controller.rb
where an exported_rows
message is being stored in the session.
And the exported_rows
message comes from app/lib/importers/file_importer.rb
which concatenates to the message every time there's a failed row.
So if there's too many row failures the cookie goes over the max size of 4KB
Simple fix:
Thoughts? I guess it'd be simplest to use activeresource on the current user for this.
Alternatively:
This issue has been open without changes for a long time! What's up?
Impacted User Types
Environment
Production (not verified in other environments)
Current Behavior
CasaCase CSV import fails when CSV only contains case numbers. Needs to be confirmed if this happens with a complete CSV as well.
Bugsnag error:
Slack Link https://rubyforgood.slack.com/archives/C010Z8RK8E6/p1635385879085500
Expected Behavior
When uploading a CSV with CaseContact required fields, there should be no error and upload should be successful.
How to Replicate
QA Login Details:
Link to QA site
Login Emails:
password for all users: 123456
Questions? Join Slack!
We highly recommend that you join us in slack https://rubyforgood.herokuapp.com/ #casa channel to ask questions quickly and hear about office hours (currently Wednesday 6-8pm Pacific), stakeholder news, and upcoming new issues.