-
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
FES reply with attachment is not decrypted #5458
Comments
Hey @sosnovsky, I attempted to send a reply to an FES encrypted message that had a 600kb attachment. Everything looks good on my end. |
It was created with the previous version of FES Message in |
It happens because after some message size (that's why this issue is caused by attachments of specific size) Gmail puts all message content into body attachment. This case is also handled by browser extension, but for some reason it fails for this message |
I've noticed that the API returns a 200 status code after 3-5 seconds, which is why it's treated as plain text. Should we look into optimizing the What are your suggestions for handling this? https://www.googleapis.com/gmail/v1/users/me/messages/{msgId}/attachments/{attachmentId} |
Our goal here is to make encrypted message to be detected as encrypted and rendered appropriately. Showing spinner is ok, but we should check why it takes so long to fetch message data here - for other messages it's much quicker.
Do we use |
It's not because of our implementation. |
@sosnovsky I sent you fetch code which will execute call to above api. |
I added code below before this line - flowcrypt-browser/extension/js/content_scripts/webmail/gmail-element-replacer.ts Line 168 in 5b7cf40
const att = await this.messageRenderer.gmail.attachmentGet(
'18b39cba715705cf',
'ANGjdJ_39gxMSuHyMrzCNBPhG0PuxCH1web9tYiWMysHXvVADpZvHjFPQ-Zm9fXMzcjrEcnK8bRLDdUAzHUADzsRuUUuDxh5_FiRUc8lORnSk14CB56jXlethhBwAeXrk7V4OZOv2vfGAZ7rpH9pHg8thTBVWDvQjLFFQRH8GcmmLRwJbY2jr_wjyXTcsMZ-IEJXyv0TOlN8BpFmWIqxYiFr_4fl1ozObb30_sSULJb0QvUSM5Z-dibNRLjoANF_ywRLwQ0Dw7w90WU2Vya_oR3frxtJtilyU8Ca30evoxgpRW3EbmklQv4J7fVdoNrLcio6gHgObGGZ6jNSx7gVSu7Ws0aE7w9vJSoUMqdz2diZPNOZ8vF_5v6bo0KGoC0'
);
console.log(att.data.toUtfStr()); So Gmail API works fast, issue should be somewhere on our side |
Strange.... |
Anyway, let me investigate and fix our logic. |
I noticed some issues with |
fixed in #5518 |
Customer reported an issue when FES reply to password-protected message isn't decrypted by browser extension, when reply contains attached file with size between 500 and 800kb
Example message is in
flowcrypt.compatibility
account with subjectFES message for #5458
The text was updated successfully, but these errors were encountered: