Browse Cards and Add Card hide database corruption behind a generic error

Open
#23,159 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
databases, mobile

Research direction

Start by tracing the deck menu actions for Browse Cards and Add Card, then follow how database corruption is reported and how the recovery dialog is opened. The issue does not name files or tests, so locate the relevant action and error handling first. Done means corruption is recorded and the recovery dialog opens for both actions instead of showing only a generic error.

Written by the indexing model from the issue text.

Description

If the database is corrupt when Browse Cards or Add Card is chosen from a deck's menu, the user sees a plain error message. The database recovery dialog never opens and the corruption isn't recorded, so the recovery options are lost.

  • Found by David while reviewing #22504
Dominant language
Kotlin
Stars
12.3k
Forks
3.1k
Avg merge
1d 11h
Merged PRs (30d)
383

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ankidroid/Anki-Android

All issues in ankidroid/Anki-Android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.