Loss of tel type attributes on contacts when sending an email to CardDAV contact
Categories
(Thunderbird :: Address Book, defect)
Tracking
(Not tracked)
People
(Reporter: adrien.rybarczyk, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Steps to reproduce:
- Create a contact on a CardDAV address book (for the test I created it from the server (Tested with a Zimbra server) but I have the impression that you can also trigger by creating from Thunderbird)
- Specify phone numbers with attributes (home, work,...)
- Send an email to this contact
Actual results:
The attributes (home, work) will be lost.
Example of card sent to server after sending email
BEGIN:VCARD
VERSION:3.0
FN:testBobby, test
N:testBobby;test;;;
TEL;TYPE="cell,voice":06
TEL;TYPE="work,voice":04
EMAIL;TYPE=internet:test
REV:20221118T110652Z
UID:282e135b-86e3-459e-8ce6-55160fe9b5a0:31899
END:VCARD
I tested by resending the request from Thunderbird with the above example by removing the " around the phone types. This worked and the attributes were not lost.
I tested by changing the attributes in Thunderbird and then sending an email. Same observation, I lost the attributes.
However, when I modified in Thunderbird, there was a difference in syntax (example below)
BEGIN:VCARD
VERSION:3.0
FN:testBobby, test
N:testBobby;test;;;
TEL;TYPE=cell:06
TEL;TYPE=work:04
EMAIL;TYPE=internet;PREF=1:test
REV:20221118T110526Z
UID:282e135b-86e3-459e-8ce6-55160fe9b5a0:31899
END:VCARD
The functions called during this writing are:
makeRequest/<
resource:///modules/CardDAVUtils.jsm:242:15
makeRequest
resource:///modules/CardDAVUtils.jsm:128:12
_makeRequest
resource:///modules/CardDAVDirectory.jsm:226:37
_sendCardToServer
resource:///modules/CardDAVDirectory.jsm:412:29
_modifyCard
resource:///modules/CardDAVDirectory.jsm:130:18
modifyCard
resource:///modules/CardDAVDirectory.jsm:126:10
expandRecipients
chrome://messenger/content/messengercompose/MsgComposeCommands.js:8858:15
GenericSendMessage
chrome://messenger/content/messengercompose/MsgComposeCommands.js:5649:7
SendMessage
chrome://messenger/content/messengercompose/MsgComposeCommands.js:6478:9
doCommand
chrome://messenger/content/messengercompose/MsgComposeCommands.js:1023:11
doCommand
chrome://messenger/content/messengercompose/MsgComposeCommands.js:1201:9
goDoCommand
chrome://global/content/globalOverlay.js:128:18
oncommand
chrome://messenger/content/messengercompose/messengercompose.xhtml:1:12
I tested the behavior also in Beta version and it is the same.
Expected results:
Do not lose attributes during an email sending.
| Reporter | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
Bug 1799096 perhaps
| Reporter | ||
Comment 4•3 years ago
|
||
That's right. But it doesn't depend on the OS.
| Reporter | ||
Comment 5•3 years ago
|
||
When you modify the contact directly, it doesn't happen all the time but sometimes there is the same effect.
| Reporter | ||
Comment 6•3 years ago
|
||
Same thing possible for addresses
| Reporter | ||
Comment 7•3 years ago
|
||
Fixed in Beta (Bug 1792542)
Updated•3 years ago
|
Description
•