Issue opening url with underscore at the end on Android
Categories
(Core :: Networking: DNS, defect, P3)
Tracking
()
People
(Reporter: tim.langhorst, Unassigned)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(3 files)
When I try to open an URL with an underscore (for example https://cromefire_.gitlab.io/nativeshell-api-definition) it immediately returns "Address Not Found" (it doesn't seem to make a network request at all).
This affects both nightly and stable, but it works fine on desktop.
Reporter | ||
Comment 1•4 years ago
|
||
Comment 2•4 years ago
|
||
I moved this to Core / Networking: DNS because I am not sure what to do with this or whether this should work.
Comment 3•4 years ago
|
||
So, _ in a hostname isn't really common, but we allow it nonetheless.
For some reason it seems the android implementation of getaddrinfo
doesn't.
When I switched to using TRR, the URL in comment 0 worked with no problem.
I also tried a custom C++ program that calls getaddrinfo, and had the same issue.
I'm not sure how Chrome is working. Maybe they're using a custom resolver?
Reporter | ||
Comment 4•4 years ago
|
||
So should this be reported to Android?
Comment 5•4 years ago
|
||
Reporter | ||
Comment 6•4 years ago
|
||
If you can provide me with details which function is affected and maybe a small "reproduction" I can report it there
Comment 7•4 years ago
|
||
I ran this test on Linux (it works) and on Android in the CxxDroid App where it didn't.
Comment 8•4 years ago
|
||
It would be nice to find a fix for this, but it's not clear what that would be.
Seems like a getaddrinfo
bug. Looking at Chrome's code it would seem they use the same, not sure what their trick is to make this work.
Comment 9•4 years ago
|
||
(In reply to Valentin Gosu [:valentin] (he/him) from comment #8)
Seems like a
getaddrinfo
bug. Looking at Chrome's code it would seem they use the same, not sure what their trick is to make this work.
Once I disabled the Async DNS feature in Chrome it stopped working too.
https://discourse.pi-hole.net/t/disable-async-dns-resolver-in-google-chrome/9500
Definitely an Android bug. Closing since there's nothing we can do here.
It is mitigated by using TRR (although we have no UI for it on Android).
Reporter | ||
Comment 10•4 years ago
|
||
How can I enable TRR?
Comment 11•4 years ago
|
||
(In reply to Tim Langhorst from comment #10)
How can I enable TRR?
Go to about:config and set network.trr.mode
to 2
More info here and here
Reporter | ||
Comment 12•4 years ago
|
||
The issue already existed in a similar fashion I added the repro snippet: https://issuetracker.google.com/issues/154694663
Description
•