-
Notifications
You must be signed in to change notification settings - Fork 75
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
Encoding issues with CGI scripts wrapping otobo.psgi #1106
Comments
Still confused. The PSGI spec says:
But looking inside CGI::Handler::PSGI the content is a string with UTF-Flag on. This looks wrong. Calling Just a reminder: Use Data::Peek::DDump($var) for showing the flags on a string, |
Honor the PSGI spec. Avoid encoding issues with the wrappers in bin/cgi-bin.
This gives neater output in case of errors.
The not encoded body might have been the sole problem. Let's run the test suite:
|
Running the test suite under Docker showed one error: Failed test 'Article displayed using correct encoding'at /opt/otobo/scripts/test/Selenium/Output/ArticleAttachmentHTMLViewer.t line 236.Looks like you failed 1 test of 31.Looks like double encoding of an article from the storage. |
Consequently the param NoEncode is no longer needed.
Honor the PSGI spec. Avoid encoding issues with the wrappers in bin/cgi-bin.
This gives neater output in case of errors.
Consequently the param NoEncode is no longer needed.
Removed the encoding to UTF-8 in Kernel::Output::HTML::Layout::Attachment(). Thus no double encoding and things look better now. |
The remaining test failures do not seem to be related to the encoding. Closing this issue. |
_AddHeadersToResponseOBject() becomes _AddHeadersToResponseObject()
See also #1470. |
Another class of failures from the cgi-bin wrapper scripts:
Looks like funny double or triple encoding. Needs to be investigated.
Originally posted by @bschmalhofer in #1054 (comment)
The text was updated successfully, but these errors were encountered: