-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#5896 Propose hotfix in extension when sending password messages #5897
base: master
Are you sure you want to change the base?
Conversation
Hello @sosnovsky - please kindly check if this hotfix looks good to you. I'll be sending the screen recording via email. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current solution affects all sent messages, while issue happens only for password-protected messages with accented characters in recipient name.
let's apply fix only for such cases.
in webPortalMessageUpload
we use formatEmailWithOptionalName method for formatting recipient emails before uploading message. there we can also transform accented characters to their non-accented versions (Š
will become S
, ř
-> r
etc).
then implemented solution won't affect other messages and make it possible to send password-protected messages to all recipients.
You’re right. I’ve followed your instructions, and this has helped me improve in providing a fix. Unfortunately, adding a test doesn’t seem feasible since the transformation of text only occurs and becomes visible right when the request is sent. I verified the fix by inspecting the request sent by the browser extension to shared-tenant-fes. Indeed, my changes correctly replace accented characters with their non-accented versions. One can verify this change by adding a recipient on contacts.google.com with accented characters. Then, send a password-protected message to them using the extension while monitoring the network traffic. Specifically, watch the request sent to shared-tenant-fes, more precisely to POST https://flowcrypt.com/shared-tenant-fes/api/v1/message. |
This PR proposed a hotfix in the FlowCrypt browser extension for an issue that exists when sending password messages.
#5896
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):