Skip to content
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

invalid radix64 character 2D skipped / read_block: read error: Invalid packet #1608

Closed
Massedil opened this issue May 27, 2024 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@Massedil
Copy link

Describe the bug

JavaScript alert() pop-up with errors when replying to an email :

invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
invalid radix64 character 2D skipped.
[don't know]: invalid packet (ctb=04).
read_block: read error: Invalid packet

To Reproduce

  1. Just reply to the specific email.

Let me know if you need specific header or content from this email to reproduce.

In fact, I don't know how to reproduce because if I try to reply again to the email, it works. Related to network error ?

Expected behavior

No pop-up and the error is handled !

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Browser: Firefox
  • SnappyMail Version: 2.36.3
  • Mode: standalone
@the-djmaze
Copy link
Owner

Sounds like a problem with PGP/GPG as if the it can't import keys or decrypt message or verify signed message.

So do you use encryption?

@Massedil
Copy link
Author

So do you use encryption?

No.

@Massedil
Copy link
Author

So do you use encryption?

No.

At least I don't remember having done anything to activate it, but may be some default options are activated. But I don't have a pgp key configured for my account. But I sometimes receive pgp signed emails. Maybe I opened a signed email before trying to reply to another and got this error.

@the-djmaze
Copy link
Owner

The problem is the Autocrypt header of the email.
When you reply, the Autocrypt header is parsed and the PGP key is imported on the server and in OpenPGP.js

oLastMessage.headers().valuesByName('autocrypt').forEach(value => {
let autocrypt = new MimeHeaderAutocryptModel(value);
if (autocrypt.addr && autocrypt.keydata) {
PgpUserStore.hasPublicKeyForEmails([autocrypt.addr])
|| PgpUserStore.importKey(autocrypt.pem(), true, true)
// || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()])
}
});

So something is wrong with the Autocrypt header.
Can you forward such email to me?
To issue-1608@snappymail.eu is fine

@Massedil
Copy link
Author

Can you forward such email to me?

I sent by email the problematic Autocrypt header to you. Let me know !

@the-djmaze
Copy link
Owner

Could you send the whole message and not just the Autocrypt header?

@Massedil
Copy link
Author

Massedil commented Jun 3, 2024

I just sent you a whole message that triggers the problem described here. Let me know !

@the-djmaze the-djmaze added external Issue is outside our code bug Something isn't working and removed external Issue is outside our code labels Jun 4, 2024
@the-djmaze
Copy link
Owner

The Autocrypt header ends with nrzCXopEosI=
But the javascript code .split('=') and .split('=', 2) dropped the last = and failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants