Closed Bug 1772677 Opened 2 years ago Closed 2 years ago

Website entry in CardDAV address book with additional backslash

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 103
defect

Tracking

(thunderbird_esr102 fixed, thunderbird103 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
thunderbird_esr102 --- fixed
thunderbird103 --- fixed

People

(Reporter: ak.bugzilla, Assigned: darktrojan)

References

Details

Attachments

(2 files)

Attached image Website_CardDAV.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33

Steps to reproduce:

Store a website entry for a contact in a CardDAV address book (in my case: a Google AB synced with the build-in CardDAV function). Go to another contact and then back to the first one.

Actual results:

The website entry is missing in the contact overview. When opening the edit form, there is an additional backslash in the URL behind the "https" making it a false entry.

Expected results:

The backslash should not be added.

We currently send something like

BEGIN:VCARD
VERSION:3.0
N:Bla;Test;;;
FN:Test Bla
REV:20220606T102416Z
UID:5f1d6be5979c943d
EMAIL:test.blo@invalid
EMAIL:a2@foo
ITEM1.URL:https://www.thunderbird.net
ITEM1.X-ABLABEL:Other
END:VCARD

Shouldn't this be

URL:https://www.thunderbird.net

Type isn't a valid type for URLs it seems. I'm not sure about the "Other" labelling - whether it's really supported, or if it is, if it's useful.

It's Google adding the backslash, but I think we should be able to handle it. Investigating.

The specification says colon characters must not be escaped.

Still broken in TB102.0b8. This needs to work when 102.0 is released.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → geoff
Status: NEW → ASSIGNED

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8c304fa97b5b
Fix Google's incorrect character escaping in vCard URLs. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
See Also: → 1777778

Will this also fix the odd appearance of \ following : entered in address book notes discussed here https://support.mozilla.org/en-US/questions/1381760 or is that another bug?

It's not just the notes field but every text field with a colon.

I created Bug 1777920

Comment on attachment 9282981 [details]
Bug 1772677 - Fix Google's incorrect character escaping in vCard URLs. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta.

Attachment #9282981 - Flags: approval-comm-beta+
See Also: → 1777920

Comment on attachment 9282981 [details]
Bug 1772677 - Fix Google's incorrect character escaping in vCard URLs. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Testing completed (on c-c, etc.): 103 beta 4
Risk to taking this patch (and alternatives if risky): no

Attachment #9282981 - Flags: approval-comm-esr102?

Comment on attachment 9282981 [details]
Bug 1772677 - Fix Google's incorrect character escaping in vCard URLs. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102

Attachment #9282981 - Flags: approval-comm-esr102? → approval-comm-esr102+
See Also: → 1798584
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: