-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Using certain unicode characters in a test case causes a "500 Service Error" #327
Comments
Thanks for the bug report. The screenshot is useless since it doesn't give me any information as to where the error is. Try to reproduce this on the live demo site, it will automatically report the error to us with all the details that we need. Also give the unicode character code b/c I only see the emoji icon and I'm not going to spend time to search for this in the entire unicode table. |
Left-Pointing Magnifying Glass U+1F50D Anyway, I could successfully reproduce this on the life demo site as well on first try. |
@atodorov
What was done to investigate:If I set DEBUG = true
Execute troubleshooting according to this help: With some addition from this help: uft8 replaced with utf8mb4
and finally, update common.py according to this Django ticket: edit file handle MariaDB only options
and after that make new docker image with MariaDB customization up containers and all works fine now with any unicode characters like 🔍 |
@atodorov as it is configuration issue maybe need to update documentation... cause I spent a day to find out a reason of HTTP500 using emoji in forms |
@sarzamas - please send a pull request for documentation updates where you think is unclear instructions. Also what language is that, which requires the |
for language charset support in forms - utf8 is sufficient Regarding pull request... there is nothing on this theme in docs yet except this ticket
I believe there should be new wiki page describing a configuration of localization/emodji support in mariaDB instances (ust using my steps above) - and link to this page in INSTALLATION /SETUP page https://kiwitcms.readthedocs.io/en/latest/installing_docker.html#initial-configuration-of-running-container |
also add short section in documentation to point out to more documentation
@sarzamas - public.tenant is hosted with Postgres (utf8 charset) and emojis seem to be supported: I have changed the default charset & collation for MariaDB to utf8mb4 and it doesn't break any existing tests so I think it is safe to leave it as default. Also added a short section in the configuration page to point out this may be something an admin would like to look at. It really depends on what you language is and how your DB server is configured (also what languages does it support) so it's hard to give any more specific information. |
This URL has changed to https://symbl.cc/de/1F50D/, it will be cool if you fix it ) |
This URL https://unicode-table.com/ has changed to https://symbl.cc/ |
Description of problem
Using certain unicode characters in a test case causes a "500 Service Error"
Component (web, API, etc)
Web Portal
Version or commit hash (if applicable)
4.1.3
How often reproducible
100%
Steps to Reproduce
Actual results
A "500 Service Error" page is displayed
Expected results
The test case should be created as normal
Additional info
The text was updated successfully, but these errors were encountered: