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

Domain and nameserver searches treat similar unicode chars (á ~ a) as the same #8

Closed
TheRedTrainer opened this issue Sep 21, 2017 · 3 comments

Comments

@TheRedTrainer
Copy link

If a client search a domain or a nameserver by unicode name that includes a char with a similar unicode value (for example á ~ a) the db return all the coincidences for the char. If a client want to retrieve data from domain "exámple.com", the query returns all the coincidences that matches similar unicode chars (example.com, éxample.com, exámple.com, examplé.com, éxámplé.com), beside the fact that the ldh_name for these domains are different because áa, ée have differente unicode values.

The query should search for the exact unicode char, at leats in domain unicode name search.

@pcarana
Copy link
Contributor

pcarana commented Sep 22, 2017

Debugging the issue, this seems to be at DB level. The implementation honours what the server sent (A-Label or U-Label), so that's good news.

The problem was reproduced at a MySQL 5.6 DB, and is behavior of the collation. An example can be seen here: 10.1.8.6 Examples of the Effect of Collation. Quoting some content of the link (just to have an idea):

This is not a bug but rather a consequence of the sorting properties...

More information at 10.1.10.1 Unicode Character Sets.

So, the database is the one with the problem, the comparisson of special characters (even when the DB supports UTF-8) doesn't works as we should normally expect, it isn't so restrictive to treat "á" as a different char than "a"; too bad for us, but that's how things are =|

@pcarana pcarana added the solved label Sep 22, 2017
@pcarana pcarana added this to the v1.1.1 milestone Sep 22, 2017
@TheRedTrainer
Copy link
Author

Verified. This issue is related to DB management system, so it's not possible to validate it in the server.

@pcarana
Copy link
Contributor

pcarana commented Nov 9, 2017

Closing, fixed in Red Dog v1.2

@pcarana pcarana closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants