You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems very similar to #5783 but hits a different part of the code base.
I've been flooded with crash logs like below, related to one single request.
It seems that the incoming message has an unusual encoding, which resulted in
I have tested manually by checking a variety of requests, and this seems to work, but I'd welcome a more thorough testing approach on this :)
Despite the presence of my patches in the stack trace, it does not seem to be the cause of the crash, these patched parts only modify which censor rules are applied (more specifically, they disable the rule for email addresses for the request author and site admins).
Disclaimer 2: this bug has only appeared on 1 incoming message out of ~15k, so I don't know if it's worth putting much more effort into it (as long as I haven't made things worse with my patch!).
The text was updated successfully, but these errors were encountered:
laurentS
changed the title
An ActionView::Template::Error occurred in request#show: incompatible character encodings: ASCII-8BIT and UTF-8
request#show: incompatible character encodings: ASCII-8BIT and UTF-8
Aug 14, 2024
This seems very similar to #5783 but hits a different part of the code base.
I've been flooded with crash logs like below, related to one single request.
It seems that the incoming message has an unusual encoding, which resulted in
This in turn caused the censor rule method below to crash:
I fixed the crash by changing
CensorRule.apply_to_text
as follows:I have tested manually by checking a variety of requests, and this seems to work, but I'd welcome a more thorough testing approach on this :)
Despite the presence of my patches in the stack trace, it does not seem to be the cause of the crash, these patched parts only modify which censor rules are applied (more specifically, they disable the rule for email addresses for the request author and site admins).
Disclaimer 2: this bug has only appeared on 1 incoming message out of ~15k, so I don't know if it's worth putting much more effort into it (as long as I haven't made things worse with my patch!).
The text was updated successfully, but these errors were encountered: