Closed Bug 1951824 Opened 1 year ago Closed 1 year ago

Exchange AutoDiscover: Fix code to show username field

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr128 wontfix, thunderbird_esr140 affected, thunderbird140 affected)

RESOLVED FIXED
141 Branch
Tracking Status
thunderbird_esr128 --- wontfix
thunderbird_esr140 --- affected
thunderbird140 --- affected

People

(Reporter: BenB, Assigned: BenB)

Details

Attachments

(1 file, 1 obsolete file)

(Re-filing the confusing bug 1907443)

In account setup, with Exchange AutoDiscover, we show a username field, but only when necessary, that is, when the server returns a HTTP 401.

That old code is racy. Only by coincidence, in TB 128, that race does not actually happen, because the new OAuth2 prompt during AutoDiscover waits for user input and blocked the racing function.

This is a fix that makes this code cleaner, more reliable, and not racy anymore.

Depends on: 1951827
Assignee: nobody → neil
Status: NEW → ASSIGNED
No longer depends on: 1907443, 1951827
OS: Unspecified → All
No longer regressed by: 1859656
Hardware: Unspecified → All
No longer regressed by: 1397646

Fix: All of https://phabricator.services.mozilla.com/D216824 , apart from the last hunk. We will re-attach it here as minimal patch.

Keywords: regression

In account setup, with Exchange AutoDiscover, we show a username field, but only when necessary, that is, when the server returns a HTTP 401. That old code is racy. Only by coincidence, in TB 128, that race does not actually happen, because the new OAuth2 prompt during AutoDiscover waits for user input and blocked the racing function.

This is a fix that makes this code cleaner, more reliable, not racy anymore, and also more readable.

Attachment #9469853 - Attachment description: Exchange AutoDiscover: Fix code to show username field → Bug 1951824 - Exchange AutoDiscover: Fix code to show username field. r=neil
Attachment #9493367 - Attachment is obsolete: true
Assignee: neil → ben.bucksch
Target Milestone: --- → 141 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/44891cb19390
Exchange AutoDiscover: Fix code to show username field. r=Neil,babolivier,vineet

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: