"export to mobile" fails to generate QR code for 2 byte wide unicode characters
Categories
(Thunderbird :: Account Manager, defect, P1)
Tracking
(thunderbird_esr128 fixed, thunderbird132 fixed, thunderbird133 fixed, thunderbird134 fixed)
People
(Reporter: sugotland, Assigned: freaktechnik)
References
Details
Attachments
(2 files)
|
182.26 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
corey
:
approval-comm-beta+
corey
:
approval-comm-release+
corey
:
approval-comm-esr128+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Steps to reproduce:
- Open 'Setting' in Spaces Toolbar
- Click "Export to Mobile"
3.Click the button "Export"
Actual results:
The QR codes don't appear.
Expected results:
Show a QR code.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Thanks for the report of this problem. Could you possibly help to get a little more detail by opening up the developer console (Ctrl+Shift+I) and provide any error messages that appear when you attempt to generate the QR code?
Updated•1 year ago
|
(In reply to Toby Pilling [:tobyp] from comment #2)
Thanks for the report of this problem. Could you possibly help to get a little more detail by opening up the developer console (Ctrl+Shift+I) and provide any error messages that appear when you attempt to generate the QR code?
OK. I will try
Uncaught Cannot encode text 10 qrcode.mjs:169:9
Segment resource:///modules/qrcode.mjs:169
segments resource:///modules/qrcode.mjs:818
map self-hosted:175
generate resource:///modules/qrcode.mjs:818
renderQR resource:///modules/QRExport.sys.mjs:213
getQRCodes resource:///modules/QRExport.sys.mjs:132
initializeQRCodes chrome://messenger/content/preferences/qr-code-wizard.mjs:58
showCodes chrome://messenger/content/preferences/qrExport.mjs:255
addEventListeners chrome://messenger/content/preferences/qrExport.mjs:109
addEventListeners chrome://messenger/content/preferences/qrExport.mjs:107
init chrome://messenger/content/preferences/qrExport.mjs:21
init chrome://messenger/content/preferences/preferences.js:133
AsyncFunctionNext self-hosted:800
init_category_if_required chrome://messenger/content/preferences/preferences.js:110
gotoPref chrome://messenger/content/preferences/preferences.js:266
init chrome://messenger/content/preferences/preferences.js:187
<anonymous> chrome://messenger/content/preferences/preferences.js:95
In english(US) language, the bug also can be reproduced.
Segment resource:///modules/qrcode.mjs:169
segments resource:///modules/qrcode.mjs:818
map self-hosted:175
generate resource:///modules/qrcode.mjs:818
renderQR resource:///modules/QRExport.sys.mjs:213
getQRCodes resource:///modules/QRExport.sys.mjs:132
initializeQRCodes chrome://messenger/content/preferences/qr-code-wizard.mjs:58
showCodes chrome://messenger/content/preferences/qrExport.mjs:255
addEventListeners chrome://messenger/content/preferences/qrExport.mjs:109
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
Comment on attachment 9434277 [details]
Bug 1928114 - Fix exporting QR codes with 2 byte utf-8 characters. r=#thunderbird-reviewers
[Approval Request Comment]
Regression caused by (bug #): bug 1919799 initially implemented this
User impact if declined: Can't generate QR code to export mail accounts if any of the export data contains UTF-8 codepoints that are two bytes wide.
Testing completed (on c-c, etc.): Tested in local build, has unit test coverage (and still passes existing coverage)
Risk to taking this patch (and alternatives if risky): Low risk, given unit tests are unaffected and this just subtly changes the data we encode in the QR code. Alternatively we could guide users to not include passwords and make sure their account names don't include non-ascii characters etc. but that seems like it would make it too much effort to use the feature in the first place.
Comment 9•1 year ago
|
||
SuGotLand, would you be willing to test the fix in the daily build tomorrow?
| Reporter | ||
Comment 10•1 year ago
|
||
Nowdays my disk has been nearly full, so I can' t build the daily version locally, but I can download and test the new version of the daily after it update in the download page.
| Reporter | ||
Comment 11•1 year ago
|
||
(In reply to Corey Bryant from comment #9)
SuGotLand, would you be willing to test the fix in the daily build tomorrow?
You can email me after updating.
| Assignee | ||
Comment 12•1 year ago
•
|
||
You can also get pre-built binaries from this try push already: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=dbebf186df4d9607b673702b90aa8c27be435c02
- Windows 64 bit: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e9pC1cv_Tqan1rSGdbWk7w/runs/0/artifacts/public/build/install/sea/target.installer.exe
- Mac OS: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/T9EFySKXRXCuz9ZGeGcXaQ/runs/0/artifacts/public/build/target.dmg
- Linux 64 bit: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/dDn1Y25-T8m73kIK0cRErw/runs/0/artifacts/public/build/target.tar.bz2
| Assignee | ||
Comment 13•1 year ago
|
||
Seems like this also fixes other UTF-8 encoding errors the QR code could produce for other non-ASCII characters.
| Reporter | ||
Comment 14•1 year ago
|
||
(In reply to Martin Giger [:freaktechnik] from comment #12)
You can also get pre-built binaries from this try push already: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=dbebf186df4d9607b673702b90aa8c27be435c02
- Windows 64 bit: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YoX3H8AHTtaKofMUKqnxbA/runs/0/artifacts/public/build/setup.exe
- Mac OS: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/T9EFySKXRXCuz9ZGeGcXaQ/runs/0/artifacts/public/build/target.dmg
- Linux 64 bit: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/dDn1Y25-T8m73kIK0cRErw/runs/0/artifacts/public/build/target.tar.bz2
The windows version is only 841KB, it can't run and delete my own daily version.
Comment 15•1 year ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fd4c4c22d1db
Fix exporting QR codes with 2 byte utf-8 characters. r=aleca
| Assignee | ||
Comment 17•1 year ago
•
|
||
(In reply to SuGotLand from comment #14)
The windows version is only 841KB, it can't run and delete my own daily version.
Ah yes, sorry, I had linked the wrong file. https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e9pC1cv_Tqan1rSGdbWk7w/runs/0/artifacts/public/build/install/sea/target.installer.exe should be better. Though since it's landed now it should be in a regular daily in about 3 hours or so.
Comment 18•1 year ago
|
||
Comment on attachment 9434277 [details]
Bug 1928114 - Fix exporting QR codes with 2 byte utf-8 characters. r=#thunderbird-reviewers
[Triage Comment]
Approved for beta
| Reporter | ||
Comment 19•1 year ago
|
||
It works on linux, but on windows, the bug still exists.
Comment 20•1 year ago
•
|
||
| bugherder uplift | ||
Thunderbird 133.0b1:
https://hg.mozilla.org/releases/comm-beta/rev/78249e9ba6ad
| Assignee | ||
Comment 21•1 year ago
|
||
Comment on attachment 9434277 [details]
Bug 1928114 - Fix exporting QR codes with 2 byte utf-8 characters. r=#thunderbird-reviewers
[Approval Request Comment]
Regression caused by (bug #): bug 1919799 initially implemented this
User impact if declined: Can't generate QR code to export mail accounts if any of the export data contains UTF-8 codepoints that are two bytes wide.
Testing completed (on c-c, etc.): Tested in local build, has unit test coverage (and still passes existing coverage)
Risk to taking this patch (and alternatives if risky): Low risk, given unit tests are unaffected and this just subtly changes the data we encode in the QR code. Alternatively we could guide users to not include passwords and make sure their account names don't include non-ascii characters etc. but that seems like it would make it too much effort to use the feature in the first place.
Comment 24•1 year ago
|
||
Comment on attachment 9434277 [details]
Bug 1928114 - Fix exporting QR codes with 2 byte utf-8 characters. r=#thunderbird-reviewers
[Triage Comment]
Approved for release
[Triage Comment]
Approved for esr128
Comment 25•1 year ago
|
||
| bugherder uplift | ||
Thunderbird 128.4.2esr:
https://hg.mozilla.org/releases/comm-esr128/rev/865aa037b2fa
Comment 27•1 year ago
|
||
Confirming this issue as verified fixed on 133.0b3(20241107210012) using Windows 10.
Comment 28•1 year ago
|
||
| bugherder uplift | ||
Thunderbird 132.0.1:
https://hg.mozilla.org/releases/comm-release/rev/ffc80abcb154
Description
•