Closed Bug 1973399 Opened 5 months ago Closed 2 months ago

AccountHub: Addon account creation broken - Wrong account type

Categories

(Thunderbird :: Account Manager, defect, P1)

Thunderbird 140

Tracking

(thunderbird_esr140 wontfix, thunderbird140 affected, thunderbird141 affected)

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

People

(Reporter: BenB, Assigned: BenB)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Precondition:

Reproduction:

  • Start Account Hub (second account)
  • Set up Office365 account or Exchange account
  • Choose Owl as account type
  • Confirm account creation

Actual result:

  • Authentication failed (that error message in itself is factually wrong and a bug)
  • Click [View Details]. Function createIncoming() failed

Expected result:

  • Account is created correctly and works

Cause:

  • During the account hub re-write, the account type setting was lost.
  • The ISPDB has server type "exchange", but Owl supports 3 different Exchange protocols.
  • addons.json has the information which protocols the addon supports. This info is then written in config property addonAccountType. AccountHub attempts to write that property, but doesn't do so correctly. The info is missing, so the account account creation fails.

Fix:

  • Set property addonAccountType correctly. Patch follows.

Importance:

  • This breaks account creation, so it has to be fixed for TB 140.
Assignee: nobody → ben.bucksch
Status: NEW → ASSIGNED
OS: Unspecified → All
Priority: -- → P1
Hardware: Unspecified → All
Target Milestone: --- → 141 Branch
Summary: AccountHub: Owl account creation broken - Wrong account type → AccountHub: Addon account creation broken - Wrong account type
See Also: → 1971303

You will not be able to reproduce it with the Owl 1.4.0.1 (not released yet) or later, because we're monkey-patching the function here, given that the fix won't make it in TB 140.0, but it's so serious that we needed to fix it right away. However, the bug still needs to be fixed in 140.x, so that we can remove the monkey-patching. We wrote our workaround so that if the fix here is applied, our workaround won't take effect.

Just a little technical background: Exchange servers and Office365 support multiple wire protocols.

  • IMAP
  • EWS
  • ActiveSync
  • OWA (Outlook Web Access)
  • and more

Which protocols are enabled varies per domain (and possibly per user) and is determined by the administrators of the domain, even on Office365.

Owl supports OWA (hence the name), EWS, and ActiveSync. This is what the "account type" property does: It creates the Owl account with the right account type for one of these protocols, which determines which wire protocol Owl will use.

Blocks: tb140found

Removing 140 blocker since Account Hub can be disabled for the old account setup and we're not planning to uplift fixes to ESR for this project

This should get landed. Patch still applies.
I'll note, that for Daily, where there is no compatible Owl to Install, it installs and says successful, but can't really proceed (you get the error from above to start with). For another bug I guess.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7d44b1f5efc4
AccountHub: Addon account creation broken - Wrong account type. r=vineet

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

Attachment

General

Created:
Updated:
Size: