Skip to content
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

Handle message decoding more safely #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tobiasmcnulty
Copy link
Member

@tobiasmcnulty tobiasmcnulty commented Jun 22, 2024

This PR makes a few changes to how messages are decoded:

  • The admin list view should not generate a 500 error in case of a bad data_coding or invalid unicode characters
  • Add support for ISO-8859-1 (both as a fallback when data_coding = 0 and for the official data_coding = 3)
  • In case a MO message fails to decode, it is moved to a new ERROR status
Screenshot 2024-06-22 at 2 41 50 PM

To do:

  • Figure out why exceptions in receive() result in none of the messages being set to DONE status, contrary to our unit test test_error_in_middle_of_patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant