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

Unable to save host with multi-byte characters #4588

Closed
YTksn opened this issue Mar 1, 2022 · 2 comments
Closed

Unable to save host with multi-byte characters #4588

YTksn opened this issue Mar 1, 2022 · 2 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@YTksn
Copy link

YTksn commented Mar 1, 2022

Describe the bug

Multibyte characters cannot be searched in "host.php" used for device search.
If use multibyte, it will be converted to hexadecimal and will not work properly.

To Reproduce

Use multibyte in the search field.

"ytksn" => "%uFF59%uFF54%uFF4B%uFF53%uFF4E"
URL will then like this=> "~~/cacti/host.php?host_status=-1&host_template_id=-1&site_id=-1&poller_id=-1&location=-1&rows=-1&filter=%uFF59%uFF54%uFF4B%uFF53%uFF4E&"

In this case, directly specifying a normal string in the "filter" field of the URL will work correctly. (~~&filter=ytksn)

Desktop (please complete the following information)

OS: CentOS 7.9

Apache/2.4.6

PHP 7.3.33

Cacti 1.2.19

MySQL Ver 14.14 Distrib 5.7.37

Set character: utf8mb4

Browser: Chrome

@YTksn YTksn added bug Undesired behaviour unverified Some days we don't have a clue labels Mar 1, 2022
@TheWitness
Copy link
Member

This is very weird. I'm able to reproduce, but when I compare that page, after one change I made, to other pages, I can not see where it's breaking. Still researching.

@TheWitness TheWitness removed the unverified Some days we don't have a clue label Mar 2, 2022
@TheWitness TheWitness added this to the v1.2.20 milestone Mar 2, 2022
TheWitness added a commit that referenced this issue Mar 2, 2022
This does not resolve the issue, but it's now closer to other pages that work.
@TheWitness TheWitness added the resolved A fixed issue label Mar 2, 2022
@TheWitness
Copy link
Member

This is fixed. If you are using the monitor plugin, you will need to update it too.

@netniV netniV changed the title Cannot use multibyte in host.php(1.2.19) Unable to save host with multi-byte characters Apr 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants