Cannot edit contacts with a least 2 e-mail addresses (when PREF=1 missing)
Categories
(Thunderbird :: Address Book, defect)
Tracking
(thunderbird_esr102+ fixed, thunderbird103 fixed)
People
(Reporter: ak.bugzilla, Assigned: u695164)
References
(Blocks 1 open bug)
Details
(Whiteboard: [TM:102.0.1optimistic])
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
rjl
:
approval-comm-esr102+
|
Details | Review |
Steps to reproduce:
I have contacts with at least 2 e-mail addresses which are synced with CardDAV. When I click the "edit" button, nothing happens.
When I edit a contact with one e-mail in Thunderbird and add a second e-mail address, everything works as expected. Adding a second e-mail address in the webmailer and syncing it to Thunderbird makes the edit button stop working.
I can reproduce this behaviour with CardDAV address books hosted by posteo.de and google.com.
No, I use the build-in CardDAV function.
I see the same behaviour in troubleshoot mode with deactivated add-ons.
Comment 3•3 years ago
|
||
I have the same problem!
Looking the Error-Console, the following errors are logged when trying to edit these contacts
about:addressbook : Unable to run script because scripts are blocked internally. 30
Uncaught TypeError: defaultEmail is undefined
getDefaultEmail chrome://messenger/content/addressbook/edit/edit.js:313
updateEmailHeading chrome://messenger/content/addressbook/edit/edit.js:294
updateView chrome://messenger/content/addressbook/edit/edit.js:172
set vCardProperties chrome://messenger/content/addressbook/edit/edit.js:110
editCurrentContact chrome://messenger/content/addressbook/aboutAddressBook.js:2858
_onClick chrome://messenger/content/addressbook/aboutAddressBook.js:3180
handleEvent chrome://messenger/content/addressbook/aboutAddressBook.js:2313
Comment 4•3 years ago
|
||
Found the possible issue, vCard contacts which have multiple email addresses but are not marked with the "pref=1" key in the vcf, cannot be edited by Thunderbird and the error above is thrown
# OK (has "PREF" KEY )
EMAIL;PREF=1;TYPE=home:user_home@domain.tld
EMAIL;TYPE=work:user_work@domain.tld
# ERROR (PREF=1 missing)
EMAIL;TYPE=other:user_home@domain.tld
EMAIL;TYPE=other:user_work@domain.tld
Thanks for the bug report and investigating the issue!
Can confirm this. The default email handling needs to be more defensive. Address Books from other sources e.g. Google might truncate the pref value.
Comment 9•3 years ago
|
||
This is pretty bad? IF so Let's get it uplifted ASAP.
Comment 10•3 years ago
|
||
Pushed by nicolai@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f08f20b2d72d
Fallback for Address Books with no pref support. r=darktrojan
Assignee | ||
Comment 11•3 years ago
|
||
Comment on attachment 9283631 [details]
Bug 1777214 - Fallback for Address Books with no pref support. r=darktrojan
[Approval Request Comment]
User impact if declined: Contacts who have more than one email and are from a different source besides the vCard based Address Books from Thunderbird are not editable by us.
Testing completed (on c-c, etc.): just landed on c-c, test coverage should follow. Manual tested by me on linux64 with CardDAV from google.
Risk to taking this patch (and alternatives if risky): The patch is not platform dependent. Another pair of eyes for this issue would decrease the risk.
Assignee | ||
Comment 12•3 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #9)
This is pretty bad? IF so Let's get it uplifted ASAP.
This is pretty bad. Let's get it up!
Comment 13•3 years ago
|
||
Comment on attachment 9283631 [details]
Bug 1777214 - Fallback for Address Books with no pref support. r=darktrojan
[Approval Request Comment]
Needs to be on beta before 102.
Comment 14•3 years ago
|
||
Comment on attachment 9283631 [details]
Bug 1777214 - Fallback for Address Books with no pref support. r=darktrojan
[Triage Comment]
Approved for beta
Comment 15•3 years ago
|
||
bugherder uplift |
Thunderbird 103.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/f70e72e734e6
Comment 16•3 years ago
|
||
optimistically approving for TB102.0.1 - assuming it will pass beta over the next several days
Comment 17•3 years ago
|
||
bugherder uplift |
Thunderbird 102.0.1:
https://hg.mozilla.org/releases/comm-esr102/rev/04ca9ee0ba45
Comment 19•3 years ago
|
||
Comment on attachment 9283631 [details]
Bug 1777214 - Fallback for Address Books with no pref support. r=darktrojan
[Triage Comment]
Updated•3 years ago
|
Description
•