KEMBAR78
Implement memflash to avoid cookie overflow error · Issue #5240 · rubyforgood/human-essentials · GitHub
Skip to content

Implement memflash to avoid cookie overflow error #5240

@awwaiid

Description

@awwaiid

Summary

Fix Cookie overflow error -- using memflash

Why?

Mitigation of user frustration -- better to see all the errors than to get a 500

Details

When there are very large flash[:error] = '....' values assigned we get a cookie overflow error. Implement this library to avoid the issue -- https://github.com/zendesk/memflash

This occurred when importing partners with a lot of errors (so an invalid CSV of some sort). You could probably recreate it by making a CSV with a lot of duplicate partners.

Or a more hackey way would be to edit a controller and add flash[:error] = "?" * 12000 . The error we got in bugsnag mentioned 11496, so more characters or bad CSV entries than that.

Criteria for completion

  • error fixed
  • automated tests to support fix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions