Closed Bug 1951827 Opened 1 year ago Closed 10 months ago

AutoConfig: 'No such host' errors are no longer handled correctly - statusText vs. status [regression]

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr115 unaffected, thunderbird_esr128 wontfix, thunderbird_esr140 fixed, thunderbird136 wontfix, thunderbird140? affected)

RESOLVED FIXED
141 Branch
Tracking Status
thunderbird_esr115 --- unaffected
thunderbird_esr128 --- wontfix
thunderbird_esr140 --- fixed
thunderbird136 --- wontfix
thunderbird140 ? affected

People

(Reporter: BenB, Assigned: neil)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [TM:140.0.1esr])

Attachments

(1 file)

(Re-filing bug 1907443 with less confusion)

In account setup, Exchange AutoDiscover, we try server names (like autodiscover.example.com) that may not exist. So, "host not found", firewalls blackholing us and never responding (not even a "no such host"), and similar errors are normal and common, by the very nature.

As of bug 1397646, FetchHTTP can't reliably use statusText any more as a means of detecting network failures. So if the autodiscover server doesn't provide any status text (e.g. because it uses HTTP/2), FetchHTTP now misidentifies these as network failures.

The fix is to use the status property instead.

Assignee: nobody → neil
OS: Unspecified → All
Hardware: Unspecified → All
No longer blocks: 1951824
Status: NEW → ASSIGNED
No longer depends on: 1907443
No longer regressed by: 1859656
Duplicate of this bug: 1907443
Summary: Exchange autodiscover authentication failures no longer handled correctly [regression] → Exchange AutoDiscover: No such host' errors are no longer handled correctly - statusText vs. status for network failures [regression]
Summary: Exchange AutoDiscover: No such host' errors are no longer handled correctly - statusText vs. status for network failures [regression] → Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status for network failures [regression]
Summary: Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status for network failures [regression] → Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status [regression]

Fix: Last hunk of https://phabricator.services.mozilla.com/D216824 . We will re-attach it here as minimal patch.

In account setup, Exchange AutoDiscover, we try server names that may not exist. So, "host not found", firewalls blackholing us and never responding (not even a "no such host"), and similar errors are normal and common, by the very nature.

As of bug 1397646, FetchHTTP can't reliably use statusText any more as a means of detecting network failures. So if the autodiscover server doesn't provide any status text (e.g. because it uses HTTP/2), FetchHTTP now misidentifies these as network failures.

The fix is to use the status property instead.

Summary: Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status [regression] → AutoConfig: 'No such host' errors are no longer handled correctly - statusText vs. status [regression]
Attachment #9469852 - Attachment description: Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status [regression] → Bug 1951827 - AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=neil
Target Milestone: --- → 141 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/89cbec0bfe46
AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=Neil,aleca

Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: 141 Branch → 140 Branch

Target milestone is for "first landed in".

Target Milestone: 140 Branch → 141 Branch

Requesting uplift to TB 140, because this fixes a regression due to a Mozilla API change in XHR. The old code is now failing, the new code works as originally designed and tested before the regression.

Comment on attachment 9469852 [details]
Bug 1951827 - AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=neil

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Regression
  • User impact if declined: Wrong error message
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: No
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a contained fix
  • String changes made/needed: none
Attachment #9469852 - Flags: approval-comm-beta?

Comment on attachment 9469852 [details]
Bug 1951827 - AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=neil

[Triage Comment]
Sorry, this missed the last beta build for 140, which was cut on Monday.

Attachment #9469852 - Flags: approval-comm-beta? → approval-comm-beta-

We seem to be missing a approval-comm-esr140 flag

Flags: needinfo?(vseerror)

Comment on attachment 9469852 [details]
Bug 1951827 - AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=neil

[Triage Comment]
Approved for esr140

Attachment #9469852 - Flags: approval-comm-esr140+
Attachment #9469852 - Flags: approval-comm-beta-
Attachment #9469852 - Flags: approval-comm-beta+

Comment on attachment 9469852 [details]
Bug 1951827 - AutoConfig: Handle 'No such host' errors correctly - statusText vs. status - fixes regression. r=neil

[Triage Comment]
Already in 141 beta

Attachment #9469852 - Flags: approval-comm-beta+ → approval-comm-beta-
Whiteboard: [TM:140.0.1esr]
Flags: needinfo?(vseerror)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: