-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large filename can crash celery / redis inflights #1411
Comments
Draft PR is ready for eyes. Need to write tests next. |
here is a screenshot of how I tested:
|
TODO: Add front end error messages when the notification exceeds the allowed payload size limit. |
We can then merge this PR: cds-snc/notification-api#2085 |
Hey team! Please add your planning poker estimate with Zenhub @andrewleith @jzbahrai @whabanks |
Just adding this info for the future... AWS offers an extended SQS client that would allow us to send SQS messages up to 2GB in size. Instead of returning an error to the user when their notification exceeds the 256kb limit, we would instead store the data in an S3 bucket and provide the extended client with a reference to this resource. While this constitutes extra work, it aligns with our mission to ensure that GCNotify is simple and easy to use for our clients. It mitigates the burden of surfacing technical limitations and removes responsibility from our clients to account for these limitations. |
Conferred with Will. Working on error messages here https://www.figma.com/design/Di5yjYVTyeoUDJ4YmWYCPs/Form-validation-and-errors---Validation-et-erreurs?node-id=2005-154&p=f&t=kVoGu9dZK8Sp7qDa-0 |
Will answered my questions in the morning and I continued on content here: https://www.figma.com/design/Di5yjYVTyeoUDJ4YmWYCPs/Form-validation-and-errors---Validation-et-erreurs?node-id=2005-155&t=lgYGTwQx6n5FdRJ0-0 Now I have a few more questions: Will continue this work on Monday |
After discussion with Will, we do not need error messages for bulk sends, only need error messages for sending to one recipient. Will says in API also tell user how to fix error, as we would do in the API. |
Implemented feedback from Will |
Will collaborated with Yedida on En content, needs localisation. Wrapping up backend work today |
Checked with Will, only the UI error message needs localization. |
Describe the bug
If a user sends a file attachment with an extremely long filename, celery cannot process the inflight and crashes. The inflight returns the the inbox and is pulled out again, and crashes. This will repeat without end.
Bug Severity
See examples in the documentation
SEV-3 Minor
Should not occur in normal use, however this impacts notifications before they are added to the database, so it will lead to lost notifications.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should catch this and reject the POST.
Impact
Could lead to lost notifications (both the one with the long filename and potentially others in the inflight)
The text was updated successfully, but these errors were encountered: