Wrong DNS records looked up during CardDAV address book setup
Categories
(MailNews Core :: Address Book, defect)
Tracking
(thunderbird_esr91+ fixed, thunderbird92 fixed)
People
(Reporter: dpa-mozilla, Assigned: darktrojan)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr91+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
With TB91b2 I delete ~/.thunderbird and ~/.cache/thunderbird , start TB and provide for the setup an email address aaa@aegee.org with password abc.
Actual results:
Thunderbird does fetch from DNS the record SRV _caldavs._tcp.aegee.org → cal.aegee.org and then calls PROPFIND https://cal.aegee.org/.well-known/carddav . When I tested it, the address https://cal.aegee.org/.well-known/carddav had not existed, so the setup failed.
Expected results:
TB should have fetched from DNS SRV _caldavs._tcp.aegee.org → path='/dav/addressbooks' and called PROPFIND https://cal.aegee.org/dav/addressbooks . This is implied by RFC 6764.
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Correction: I wrote _caldavs._tcp but I meant _carddavs._tcp .
Comment 2•3 years ago
•
|
||
Hmm, there is no SRV record for the address book. Try this in the console:
var { DNS } = ChromeUtils.import("resource:///modules/DNS.jsm");
var hostname = "aegee.org";
var recs = await DNS.srv(`_carddavs._tcp.${hostname}`); recs;
The SRV record is just one item, which is for caldav.
var txts = await DNS.txt(`_carddavs._tcp.cal.aegee.org`); txts;
Gives no results
var txts = await DNS.txt(`_carddavs._tcp.aegee.org`); txts;
.. does give back an array, and array[0] object data: "path=/dav/addressbooks"
But, we looked at the DNS TXT for the calendar, not the address book
https://searchfox.org/comm-central/rev/93487d295e3d3365c3082104ea980c7a0dfceeef/mailnews/addrbook/modules/CardDAVUtils.jsm#287
Not sure if there's a bug here. Shouldn't we get back the carddav SRV record to begin with?
Reporter | ||
Comment 3•3 years ago
|
||
These records exist:
_carddavs._tcp.aegee.org. 14400 IN TXT "path=/dav/addressbooks"
_carddavs._tcp.aegee.org. 7006 IN SRV 0 1 444 cal.aegee.org.
The lookup for _carddavs._tcp.cal.aegee.org, cited above, is wrong. So the bootstrap URL per RFC 6764 is https://cal.aegee.org:444/dav/addressbooks . TB91 does not use this bootstrap URL.
This ticket is only about CardDAV.
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Yes, we're looking for TXT records on the wrong domain.
Assignee | ||
Comment 5•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/bb44c6d49892
Look for TXT records on the right domain during CardDAV set-up. r=mkmelin
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Comment on attachment 9236743 [details]
Bug 1722294 - Look for TXT records on the right domain during CardDAV set-up. r=mkmelin
[Approval Request Comment]
Regression caused by (bug #): never worked
User impact if declined: address book auto-detection may fail, because it's looking in the wrong place
Testing completed (on c-c, etc.): on c-c since last week, although there's been no Linux/Windows nightlies since then
Risk to taking this patch (and alternatives if risky): it wouldn't be broken any worse than it is already
Comment 8•3 years ago
|
||
Comment on attachment 9236743 [details]
Bug 1722294 - Look for TXT records on the right domain during CardDAV set-up. r=mkmelin
[Triage Comment]
Approved for beta
Comment 9•3 years ago
|
||
bugherder uplift |
Thunderbird 92.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/ccc6e02b530e
Assignee | ||
Comment 10•3 years ago
|
||
Comment on attachment 9236743 [details]
Bug 1722294 - Look for TXT records on the right domain during CardDAV set-up. r=mkmelin
[Approval Request Comment]
Regression caused by (bug #): never worked
User impact if declined: address book auto-detection may fail, because it's looking in the wrong place
Testing completed (on c-c, etc.): in 92.0b3
Risk to taking this patch (and alternatives if risky): it wouldn't be broken any worse than it is already
Updated•3 years ago
|
Comment 11•3 years ago
|
||
Comment on attachment 9236743 [details]
Bug 1722294 - Look for TXT records on the right domain during CardDAV set-up. r=mkmelin
[Triage Comment]
Approved for esr91
Comment 12•3 years ago
|
||
bugherder uplift |
Thunderbird 91.1.1:
https://hg.mozilla.org/releases/comm-esr91/rev/d0e83bff5ee4
Description
•