Closed Bug 1735983 Opened 3 years ago Closed 3 years ago

Issue with Euro Symbol (€) in Mail Account Password

Categories

(Thunderbird :: Account Manager, defect, P5)

Thunderbird 91

Tracking

(thunderbird_esr91+ fixed)

RESOLVED FIXED
96 Branch
Tracking Status
thunderbird_esr91 + fixed

People

(Reporter: it, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

Steps to reproduce:

I tried to set up an IMAP account with a password which contains a Euro (€) symbol.

Actual results:

On TB 78.13 (shipped by the current Ubuntu 20.04 repos) nothing happens when clicking the "Next" button.
On TB 91, the following error appears: "TypeError: Base64Encode: Cannot convert value to ByteString because the character at index 26 has value 8364 which is greater than 255."

Expected results:

TB should accept passwords with € characters. The same password works in other clients such as Outlook or Evolution.

Keywords: regression

Password with §£ works here for IMAP, but the account was set up before TB 91. Is the issue during account setup or in normal operation? If it's in account setup, can you correct the password later in the security preferences or enter it when prompted?
BTW: The TypeError is from the console, right? Which source file and line?

Thanks for your response. This error message is visible during the account setup in the GUI of TB 91 (not on the console), I've attached a screenshot. It also affects older version including TB 78, but there is no error message visible, just nothing happens when clicking the "Next" button.

Thanks for this workaround. I now entered a wrong password and then I was able to set the correct password with € char in the security preferences. After that, everything works fine. So this seems to be a bug specific to the initial account setup page.

The bug is here:
https://searchfox.org/comm-central/rev/89632cecb2845b88ff87b9f09c8cfd47a1fe886a/mail/components/accountcreation/FetchHTTP.jsm#217
Before using btoa() the username and password need to be converted to UTF-8.
The code originally comes from here https://hg.mozilla.org/comm-central/rev/1403c0fa3d1a#l8.209 from bug 1500105.
Funny that no one noticed in three years.

Flags: needinfo?(ben.bucksch)

Thanks, newsfan!

Assignee: nobody → ben.bucksch
Severity: -- → S4
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(ben.bucksch)
OS: Unspecified → All
Priority: -- → P5
Hardware: Unspecified → All
Assignee: ben.bucksch → mkmelin+mozilla
Regressed by: owl
Target Milestone: --- → 96 Branch

Sorry, this dropped from my radar. I ping would have been sufficient. I can take care of this.

No need, I had created the patch already.

Thanks, Magnus

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/08847f61ffa5
Cannot set up account if Euro Symbol (€) in Mail Account Password. r=aleca

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

Comment on attachment 9252872 [details]
Bug 1735983 - Cannot set up account if Euro Symbol (€) in Mail Account Password. r=aleca

[Approval Request Comment]
Regression caused by (bug #): bug 1500105
User impact if declined: cannot set up account is e.g. € in the password
Testing completed (on c-c, etc.): c-c, beta
Risk to taking this patch (and alternatives if risky): safe

Attachment #9252872 - Flags: approval-comm-esr91?

Comment on attachment 9252872 [details]
Bug 1735983 - Cannot set up account if Euro Symbol (€) in Mail Account Password. r=aleca

[Triage Comment]
Approved for esr91

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

Attachment

General

Creator:
Created:
Updated:
Size: