Crash when saving "noname" file from email
See original GitHub issueI subscribe to a lot of mailing lists, and K-9 doesn’t seem to like them.
I’ve been able to reproduce a crash by opening what should be an ordinary email, and instead of seeing the text, there is a “noname” attachment. Trying to open it with an application, as far as I can tell, sends no data to the application in question. Attempting to save the file causes K-9 to crash. I’ve included a GIF to show this (the email I’m opening is here), and I’ve also included some output I got from my first time using adb
.
04-05 18:27:54.853 16062 17459 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #5
04-05 18:27:54.853 16062 17459 E AndroidRuntime: Process: com.fsck.k9, PID: 16062
04-05 18:27:54.853 16062 17459 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:318)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:3$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecut$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecu$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: mimeType can't be null
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at android.app.DownloadManager.validateArgumentIsNonEmpty(DownloadMan$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at android.app.DownloadManager.addCompletedDownload(DownloadManager.j$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at android.app.DownloadManager.addCompletedDownload(DownloadManager.j$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at com.fsck.k9.ui.messageview.AttachmentController.addSavedAttachment$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at com.fsck.k9.ui.messageview.AttachmentController.saveAttachmentWith$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at com.fsck.k9.ui.messageview.AttachmentController.access$900(Attachm$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyn$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyn$
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:304)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: ... 3 more
I’ve been having this issue for a while now, probably with several different versions, but right now, I’m on K-9 Mail 5.503 and Android 7.0.
And by the way, even though this is on a mailing list, I have OpenPGP encryption enabled with my email provider (they’ll use my public key to encrypt emails that aren’t encrypted already), so it is encrypted with PGP/MIME. I don’t think that has anything to do with it, but that’s just a disclaimer. The email decrypts and displays fine in Thunderbird + Enigmail.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top GitHub Comments
@JohnScott623 could you forward such a message to me as attachment? -> look@my.amazin.horse
Please create a new issue if this is still a problem with K-9 Mail 5.7xx.