CalDAV setup prompts for password but doesn't send it
Categories
(Calendar :: Provider: CalDAV, defect)
Tracking
(thunderbird91+ fixed)
People
(Reporter: freaktechnik, Assigned: darktrojan)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
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.
Assignee | ||
Comment 1•3 years ago
|
||
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 | ||
Comment 2•3 years ago
|
||
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.
Assignee | ||
Comment 3•3 years ago
|
||
Setting checkin-needed as I'm finished for the week. It'd still be helpful if you double-checked this worked, Martin.
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
Comment 5•3 years ago
|
||
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
Comment 6•3 years ago
|
||
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?
Reporter | ||
Comment 7•3 years ago
•
|
||
Compared to ESR it is a regression, sure. As in the calendar prompting my initial report worked fine there.
Assignee | ||
Comment 8•3 years ago
|
||
We'll blame Paul. He's not here to defend himself.
Comment 9•3 years ago
|
||
bugherder uplift |
Thunderbird 91.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/24821244330c
Description
•