Conversation
For some reason it's possible to get an invalid UTF8 input in downgrade, which leads to a very weird stop of processing and errors. The problem was observed on Request Tracker 4.2.8 with emails with utf8-encoded subject lines. This seems like a really hacky fix, and the issue might be somewhere else on the stack, like some kind of a failure to mark a specific string as UTF-8, but I have no idea how to track that down.
|
This looks like you're passing character strings to DBD::Pg, but not using Falling back to using the UTF-8 representation for non-downgradeable strings means you get inconsistently encoded data in your database: code points in the 0-255 range are represented as-is, while those above are represented by characters corresponding to the bytes in their UTF-8 encoding. The error message and documentation of this clearly needs improving, though. |
|
Previous code was correct, this change is wrong. You cannot pass values above |
|
@ilmari Does this need any work? A doc patch or anything? |
|
Anyone want to improve the docs on this? |
|
@turnstep: I agree that problem is not in code, but in "documentation", which can be improved. But I really do not have time to write documentation updates. But if somebody else is going to prepare documentation patch, I can find time for reviewing it! @turnstep: But in case nobody is going to prepare and send documentation patch, please at least open an issue ticket that documentation needs to be improved. So in case somebody would be confused again we can at least redirect to documenation issue ticket. Meaning information about "documentation improvement is needed" is not lost. |
(an updated version, missed one change)
For some reason it's possible to get an invalid UTF8 input in downgrade,
which leads to a very weird stop of processing and errors. The problem
was observed on Request Tracker 4.2.8 with emails with utf8-encoded subject
lines.
This seems like a really hacky fix, and the issue might be somewhere else
on the stack, like some kind of a failure to mark a specific string as UTF-8,
but I have no idea how to track that down.