Closed Bug 1978192 Opened 1 month ago Closed 29 days ago

Thunderbird 140 broke Fastmail CalDAV OAuth due to missing OAuth settings

Categories

(Thunderbird :: General, defect, P2)

Thunderbird 140

Tracking

(thunderbird_esr140 fixed, thunderbird141 wontfix, thunderbird142 fixed, thunderbird143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
thunderbird_esr140 --- fixed
thunderbird141 --- wontfix
thunderbird142 --- fixed
thunderbird143 --- fixed

People

(Reporter: mozilla, Assigned: jtracey)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:

Setup a Fastmail account in Thunderbird

Actual results:

Previously Thunderbird would automatically detect Fastmail calendars via CalDAV and use OAuth authentication to access them. However that no longer works and it requires creating a separate app password.

Expected results:

Thunderbird should use OAuth authentication for Fastmail for Mail, Contacts and Calendars.

It appears that one of the recent changes in TB 140 is that "CardDAV address books and calendars now use the same OAuth2 code as mail". That's great! However it appears in this consolidation that the Fastmail configuration was broken for calendaring. Looking at the github mirror...

https://github.com/mozilla/releases-comm-central/blob/60d68d5b1e4972c9e4327b16b7aed7b1858bbdde/mailnews/base/src/OAuth2Providers.sys.mjs#L81

  ["imap.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  ["pop.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  ["smtp.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  [
    "carddav.fastmail.com",
    ["www.fastmail.com", "https://www.fastmail.com/dev/protocol-carddav"],
  ],

That's missing the config for our CalDAV service. I believe the best fix would be replacing all of the above with:

  ["imap.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  ["pop.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  ["smtp.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES]],
  ["carddav.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES.carddav]],
  ["caldav.fastmail.com", ["www.fastmail.com", FASTMAIL_SCOPES.caldav]],

This would also more closely match what is done around #L54 for the google servers and scopes.

Component: Untriaged → General
Blocks: tb140found
Severity: -- → S3
Keywords: regression
Priority: -- → P2
Regressed by: 1927998
Assignee: nobody → jtracey
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Thanks for the detailed bug report, I was able to test and confirm your suggested change fixed the problem.

Pushed by heather@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/562a344107db
Use Fastmail CalDAV config. r=thunderbird-reviewers,darktrojan

Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED

Comment on attachment 9501906 [details]
Bug 1978192 - Use Fastmail CalDAV config. r=#thunderbird-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Users will be unable to use Fastmail calendars.
  • User impact if declined: Users will be unable to use Fastmail calendars.
  • 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): This is just an addition the the OAuth configurations. No code changes.
  • Does the fix cause any migrations to be skipped?: No
  • String changes made/needed:
Attachment #9501906 - Flags: approval-comm-beta?

I think for some reason I thought this already was on beta, so I decided to wait a while before requesting uplift to ESR. Turns out it isn't on beta, and it should be there for at least a week before uplifting to ESR.

Comment on attachment 9501906 [details]
Bug 1978192 - Use Fastmail CalDAV config. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Yes, let's also plan to get into esr140

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

Please remember to request esr140 approval as well.

(Usually we ask both at the same time so it's not forgotten.)

Comment on attachment 9501906 [details]
Bug 1978192 - Use Fastmail CalDAV config. r=#thunderbird-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Users will be unable to use Fastmail calendars.
  • User impact if declined: Users will be unable to use Fastmail calendars.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: Yes
  • 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): This is just an addition the the OAuth configurations. No code changes.
  • Does the fix cause any migrations to be skipped?: No
  • String changes made/needed:
Attachment #9501906 - Flags: approval-comm-esr140?

(I've not forgotten. Bugzilla reminders.)

Comment on attachment 9501906 [details]
Bug 1978192 - Use Fastmail CalDAV config. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr140

Attachment #9501906 - Flags: approval-comm-esr140? → approval-comm-esr140+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: