thunderbird / thunderbird/thunderbird-android
Import of settings including 1 account fails
Open
@wmontwe is already working on this.
Since Aug 29, 2023.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
Description
Checklist
- I have used the search function to see if someone else has already submitted the same bug report.
- I will describe the problem with as much detail as possible.
App version
6.602
Where did you get the app from?
F-Droid
Android version
Android 13 from GrapheneOS
Device model
Google Pixel 6a
Steps to reproduce
- copy settings file
- open app
- click "import settings"
- select file
- keep the account checked to be imported
- click "import"
Expected behavior
Global settings and the 1 account are imported.
Actual behavior
Error message Failed to import some settings.
Import of global settings excluding the account works. #6689 seems to indicate that account details are "invalid" but I don’t see what might be invalid. I tried to
- remove the German umlaut ö from my name in sender identities or
- remove all signature texts from all sender identifies
before export but that did not change the result.
Logs
I needed to create a bogus account in order to access the global settings.
I redacted my private email address in the log for privacy.
...
08-20 23:36:27.190 28928 28959 V SettingsImporter: Setting 9124a66f-a9e9-4583-91ac-2715ddf480c0.signatureBeforeQuotedText=false
08-20 23:36:27.190 28928 28959 V SettingsImporter: Setting 9124a66f-a9e9-4583-91ac-2715ddf480c0.accountNumber=1
08-20 23:36:27.190 28928 28959 E SettingsImporter: Encountered invalid setting while importing account "MY_EMAIL@DOMAIN.TLD"
08-20 23:36:27.190 28928 28959 E SettingsImporter: com.fsck.k9.preferences.Settings$InvalidSettingValueException
08-20 23:36:27.190 28928 28959 E SettingsImporter: at com.fsck.k9.preferences.SettingsImporter.importAccount(SettingsImporter.java:458)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at com.fsck.k9.preferences.SettingsImporter.importSettings(SettingsImporter.java:221)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at com.fsck.k9.ui.settings.import.SettingsImportViewModel.importSettings(SettingsImportViewModel.kt:386)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at com.fsck.k9.ui.settings.import.SettingsImportViewModel.access$importSettings(SettingsImportViewModel.kt:28)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at com.fsck.k9.ui.settings.import.SettingsImportViewModel$startImportSettings$1$1$1.invokeSuspend(SettingsImportViewModel.kt:303)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
08-20 23:36:27.190 28928 28959 E SettingsImporter: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
08-20 23:36:27.191 28928 28959 I K9StorageEditor: Committing preference changes
08-20 23:36:27.197 28928 28959 I K9StorageEditor: Preferences commit took 6 ms
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.
Assessment
This issue has not been assessed yet.