Closed Bug 1870720 Opened 11 months ago Closed 11 months ago

Error 0x80004005 NS_ERROR_FAILURE with an idn domain

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 115
defect

Tracking

(thunderbird_esr115+ fixed, thunderbird122 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
thunderbird_esr115 + fixed
thunderbird122 --- fixed

People

(Reporter: l.fuerderer, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: intl, regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

  • Start with a completely fresh Thunderbird profile
  • Choose a mail server with an idn domain name
  • Setup IMAP and SMTP with "Manual configuration" using the punycode (xn--*) domain as imap server / smtp server hostname
  • Click on "Re-test" (green box appears), then click on "Done".

Actual results:

I see a yellow box with the content:
Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIMsgIncomingServer.verifyLogon]
Below that, it says "Checking password..." with a loading indicator that runs without ending. (I waited at least 5 minutes)

This error occurs in Thunderbird version 115.5.2 but not in 115.5.1

Expected results:

The mail account should be successfully configured, Thunderbird should change to the main screen and start loading mails.

And if you use the real domain? (Non punycode one)

Keywords: regression

Would likely be from bug 1857824.
But entering the host in punycode to begin with would be a bit unexpected.

Regressed by: 1857824

Thunderbird asks for name, mail address and password first, before I can change individual IMAP / SMTP settings.

When I enter my mail address with the hostname part in non-ascii form, Thunderbird complains right away:
"Hostname is empty or contains forbidden characters. Only letters, numbers, - and . are allowed."

When I use the punycode first for my mail address but enter the non-ascii hostname into the IMAP / SMTP hostname fields and click on Re-Test, the hostnames are automatically replaced by their punycode counterpart.
The "Done" button is grayed out until I click on Re-Test. Clicking Done after this auto-replacement results in the same Issue as described in my opening post.

Duplicate of this bug: 1871164

Bug 1857824 made IDN hostnames that were entered as normal text work (not break the UI), but
didn't account for accounts that were entere as punycode to begin with.

That bug normalized the hostname from the url. This normalizes the actual hostname pref as well.

Bug 1871164 has good steps to reproduce.

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Component: Untriaged → Account Manager
Duplicate of this bug: 1870997
Severity: -- → S3
Keywords: intl

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a00fee758b02
Account for hostnames that were entered as punycode. r=babolivier

Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

Comment on attachment 9369844 [details]
Bug 1870720 - Account for hostnames that were entered as punycode. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): bug 1857824
User impact if declined: can't enter idn account
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): fairly safe, adds automated test

Attachment #9369844 - Flags: approval-comm-esr115?
Attachment #9369844 - Flags: approval-comm-beta?
See Also: → 1872632

Comment on attachment 9369844 [details]
Bug 1870720 - Account for hostnames that were entered as punycode. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9369844 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9369844 [details]
Bug 1870720 - Account for hostnames that were entered as punycode. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr115

Attachment #9369844 - Flags: approval-comm-esr115? → approval-comm-esr115+
Duplicate of this bug: 1875895
Blocks: 961908

The test added in this bug does not pass on ESR. Is comm-esr115 missing something, or is mozilla-esr115 missing something?

Flags: needinfo?(mkmelin+mozilla)

Bug 1880690 takes care.

Blocks: 1880690
Flags: needinfo?(mkmelin+mozilla)

I have removed a MOZ_CRASH I see with a patch in
https://phabricator.services.mozilla.com/D216180

But obviously there are other issues.

Oops, I meant the comment 16 for a different Bug 1906992.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: