thunderbird / thunderbird/thunderbird-android
K-9 Mail crash when OpenKeychain's ContentProvider throws an exception
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
Description
Expected behavior
open a new mail and just insert the defect mail address (I guess K9Mail will inform that it can not send when the mail address is invalid and that's just fine for this case I think)
Actual behavior
crash
Steps to reproduce
- Open the html in the attached zip file peene-werft-107.html.zip on your Android device. (tested with Firefox and Chromium)
- Tap on "Icon Briefumschlag" (the mail icon). That should bring up your default mail app - e.g. K9Mail.
- K9Mail will crash immediately.
This is the defect mailto link:
mailto:BITTE%20DIE%20ADRESSE%20HIER%20EINTRAGEN?subject=Link-Tipp%3A%20Peene-Werft%20in%20Wolgast%3A%20Zum%20Warten%20verdammt%20%28tagesschau.de%29&body=Link-Tipp%3A%20Peene-Werft%20in%20Wolgast%3A%20Zum%20Warten%20verdammt%20%28tagesschau.de%29%0A%0Dhttp://www.tagesschau.de/wirtschaft/peene-werft-107.html%0A%0D%0A%0D
Instead of using the attached html you may also go to the following website. But the website may have fixed the defect mailto link by now!
https://www.tagesschau.de/wirtschaft/peene-werft-107.html
Environment
K-9 Mail version: 5.600 (PlayStore)
Android version: 8.1 (LineageOS-15.1)
Account type (IMAP, POP3, WebDAV/Exchange): IMAP
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied defect mailto link on Android and tracing the mailto intent handling where the OpenKeychain ContentProvider exception reaches K-9 Mail. Done means the invalid address no longer crashes the app and the message can be handled as described in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100