Closed Bug 1797927 Opened 2 years ago Closed 2 years ago

Invalid freebusy query from Invite Attendees dialog when polish letter "ś" is in the input.

Categories

(Calendar :: Dialogs, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird107 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird107 --- fixed

People

(Reporter: pio_felipe, Assigned: mkmelin)

Details

Attachments

(2 files)

Attached image bug1.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Steps to reproduce:

  1. Create event
  2. click "invite attendees"
  3. enter "Ktoś Taki <someone@example.com>" (without quotes)

Actual results:

Free/busy info does not show,
a POST request is send with empty mailto: in ATTENDEE

BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VFREEBUSY
UID:4023247d-1e83-48b5-a51b-93ab7e537bdf
DTSTAMP:20221028T070831Z
DTSTART:20221028T060000Z
DTEND:20221113T070000Z
ORGANIZER:mailto:me@example.com
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:mailto:
END:VFREEBUSY
END:VCALENDAR

Attached are screenshots from debug in calendar-event-dialog-attendees.js, MailServices.headerParser.parseEncodedHeader returns object with "email" set to empty string for this input.

Expected results:

POST request with mailto: someone@example.com is send

BEGIN:VCALENDAR
(...)
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:mailto:someone@example.com
(...)
END:VCALENDAR

The value is from user input, so should get the address using makeFromDisplayAddress (which never returns null.)

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 108 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/67f9689bd808
Invite attendees updateFreeBusy should form queries based on displayed email, not encoded header. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9301010 [details]
Bug 1797927 - Invite attendees updateFreeBusy should form queries based on displayed email, not encoded header. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): long time bug?
User impact if declined: free bust not necessarily working (if display name has encoding)
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): pretty safe

Attachment #9301010 - Flags: approval-comm-esr102?
Attachment #9301010 - Flags: approval-comm-beta?

Comment on attachment 9301010 [details]
Bug 1797927 - Invite attendees updateFreeBusy should form queries based on displayed email, not encoded header. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9301010 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9301010 [details]
Bug 1797927 - Invite attendees updateFreeBusy should form queries based on displayed email, not encoded header. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102

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

Attachment

General

Creator:
Created:
Updated:
Size: