Open Bug 1853528 Opened 3 years ago Updated 3 years ago

Cal&CardDAV SRV lookup autoconf value lost when other credentials needed (should ask for username and password on http 401)

Categories

(Calendar :: General, defect)

Thunderbird 117
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

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

Steps to reproduce:

I added a new email account on a server that has RFC 6764-compatible SRV records for _carddavs._tcp and _caldavs._tcp. After email had been configured, I went to add the addressbook and calendar associated.

Actual results:

TB showed me the same dialog box as if I had clicked "add new" from the UI, i.e. the server field, which it got from the SRV record, was not populated.

This is because the credentials for email and Cal&CardDAV in this setup are not the same. In the background, TB did try to reach out to the DAV server, but it tried with the credentials it obtained from email autoconf, which don't work in this case. Thus, the server returned a 401 to the request for .well-known/caldav and .well-known/carddav.

Expected results:

Upon receiving the 401, TB should pop up a dialog box asking the user for username and password, pre-filling the username from email autoconf. Upon the user clicking OK, TB should retry with the new credentials.

Component: Untriaged → General
Product: Thunderbird → Calendar
Summary: Cal&CardDAV SRV lookup autoconf value lost when other credentials needed → Cal&CardDAV SRV lookup autoconf value lost when other credentials needed (should ask for username and password on http 401)
You need to log in before you can comment on or make changes to this bug.