Closed Bug 140472 Opened 23 years ago Closed 23 years ago

DNS: No escape for non ASCII host name

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: nhottanscp, Assigned: nhottanscp)

References

Details

(Keywords: intl, qawanted, Whiteboard: [adt3])

Attachments

(1 file)

Mozilla escapes entire host name if it contains non ASCII. e.g. www.á.com -> "%77%77%77%2E%E3%81%82%2E%63%6F%6D" Encoding host name may be done at client resolver or by the server. That would not work if Mozilla escapes the host name. E.g. mdnkit by JPNIC http://www.nic.ad.jp/ja/idn/mdnkit/download/documents/mdnkit-2.4-doc/en/spec/spec.html I think this is important because Mozilla does not provide IDN encoding as default and the user may need to depend on other solutions to enable IDN.
CC'ing edmon. I want to nominate this for nsbeta1. We would like to claim support for multilingal domain names for the next client release. If we escape the domain name part of it, our support only has an incomlete story.
Keywords: nsbeta1
sounds like a good plan to me.
Status: NEW → ASSIGNED
Keywords: mozilla1.0
Priority: -- → P3
Target Milestone: --- → mozilla1.0
no time for 1.0
Whiteboard: [RTM]
Target Milestone: mozilla1.0 → mozilla1.0.1
Keywords: intl
Target Milestone: mozilla1.0.1 → ---
Target Milestone: --- → mozilla1.0.1
Whiteboard: [RTM] → [adt2 RTM]
Attached patch patchSplinter Review
this patch doesn't solve the bug exactly... it just fixes the escaping so that only non-ASCII characters are escaped. escaping all characters was never intended.
Comment on attachment 84876 [details] [diff] [review] patch r=dougt
Attachment #84876 - Flags: review+
nhotta: i'm on vacation now... if this still needs to be fixed by RTM then it'll need a new owner. -> 1.2alpha
Target Milestone: mozilla1.0.1 → mozilla1.2alpha
Reassign to nhotta and i18n group will evaluate this for rtm.
I think the idns is still not mature enough and it is too risky to change in this level of code right now. Let's nsbeta1- it and push for trunk .
Assignee: darin → nhotta
Status: ASSIGNED → NEW
Keywords: nsbeta1nsbeta1-
Return this to darin. Can we unescape non ASCII just before we send the host name to the server?
Assignee: nhotta → darin
Blocks: 157673
Summary: No escape for non ASCII host name → DNS: No escape for non ASCII host name
*** Bug 161432 has been marked as a duplicate of this bug. ***
-> future
Target Milestone: mozilla1.2alpha → Future
If this is IDN, can I get the IDN QA to take this bug from me?
Keywords: qawanted
For simple test cases, visit http://pi.cr.yp.to/ If this were working, you could visit http://π.cr.yp.to/ (i.e. with a greek Pi) but instead Mozilla goes crazy. This should be simple to fix: just stop escaping the domain name.
very important to fix for international, since non ascii characters are increasingly being used in domain names; changed to nsbeta1+; assigned to nhotta -dassi
Assignee: darin → nhotta
Keywords: nsbeta1-nsbeta1+
i18n triage team: nsbeta1+/adt3
Whiteboard: [adt2 RTM] → [adt3]
IDN (Internatioanl Domain Name) is now official (bug 112979). That means sending a domain name as raw UTF-8 is not legal. The current behavior to escape a domain name when IDN is not enable is the right behavior. Removing nsbeta1+. Shall I mark this as wontfix?
Keywords: nsbeta1+nsbeta1
yeah, i think that makes sense. marking WONTFIX.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
So, the initally described behavior, (escape entire hostname) is the correct behavior if we are not in an IDN-enabled mode?
Yes, if IDN is not enable, apply escaping per RFC 2396.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: