Closed Bug 1720862 Opened 3 years ago Closed 3 years ago

CalDAV setup prompts for password but doesn't send it

Categories

(Calendar :: Provider: CalDAV, defect)

Thunderbird 91
defect

Tracking

(thunderbird91+ fixed)

RESOLVED FIXED
92 Branch
Tracking Status
thunderbird91 + fixed

People

(Reporter: freaktechnik, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When trying to set up my nextcloud calDAV calendar I get prompted to enter a password (which by the way is already saved for cardDAV). However the subsequent propfind sends an empty password (Authorization: Basic base64(username:)) instead of the value I entered in the password prompt. When that fails with a 401, the code falls back to user less discovery and ultimately fails.

This is possibly a dupe of bug 1688448.

I know why this is. I'm about to fix it along with a related problem that doesn't appear to have a bug yet, so I'll do both here.

Assignee: nobody → geoff
Status: NEW → ASSIGNED

Detection probes servers in two stages, firstly without authenticating, then if necessary asking for the password and trying again.
If the server responds with HTTP 401 in the first stage, we've been incorrectly trying to authenticate with the username and no password, then in the second stage using that same authentication (cached by network code) and failing.
This patch prevents the attempt to auth when there's no password, and separates all requests in detection sessions to avoid the caching problem.

Setting checkin-needed as I'm finished for the week. It'd still be helpful if you double-checked this worked, Martin.

Target Milestone: --- → 92 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/3a4eab1e7350
When detecting calendars, use a new user context for each request. r=freaktechnik,john.bieling

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9232763 [details]
Bug 1720862 - When detecting calendars, use a new user context for each request. r=freaktechnik,john.bieling

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Certain CalDAV calendars cannot be setup.

Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
Low

Attachment #9232763 - Flags: approval-comm-beta?

Comment on attachment 9232763 [details]
Bug 1720862 - When detecting calendars, use a new user context for each request. r=freaktechnik,john.bieling

[Triage Comment]
Approved for beta

Not a regression?

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

Compared to ESR it is a regression, sure. As in the calendar prompting my initial report worked fine there.

We'll blame Paul. He's not here to defend himself.

Keywords: regression
Regressed by: 306495
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: