Duplicate entry prompt is bypassed when saving through the "Discard changes?" dialog

Open Beginner friendly
#1,870 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, java

Research direction

Start by tracing the entry editor's toolbar save action and the Save action in the "Discard changes?" dialog, then compare how each handles duplicate detection. The issue gives a clear reproduction path; run the relevant entry editor tests, if present, and verify both save paths show the duplicate prompt before an entry is added.

Written by the indexing model from the issue text.

Description

bug
Version

v3.4.3

Source

GitHub

Vault encryption

No

Device

Android Studio Emulator (Medium Phone)

Android version

Android 16 (API 36)

ROM

No response

Steps to reproduce
  1. Create a manual TOTP entry with the account name "Test Account" and issuer "Test Issuer", then save it.
  2. Create another manual entry with the same account name, issuer and secret.
  3. Tap the Save button in the toolbar. The duplicate entry prompt appears.
  4. Cancel the duplicate entry prompt.
  5. Tap the × button in the top-left corner of the entry editor.
  6. Tap "Save" in the "Discard changes?" dialog.
  7. Observe the duplicate entries in the vault.
What do you expect to happen?

Saving an entry through the "Discard changes?" dialog should display the same duplicate entry prompt as saving through the toolbar, allowing the user to decide how to handle the duplicate.

What happens instead?

The entry is saved directly without displaying the duplicate entry prompt. The vault now contains two entries with the same account name and issuer.

This behavior is inconsistent between the two available ways of saving an entry.

Log

No response

bug1 bug2
Dominant language
Java
Stars
13.7k
Forks
626
Avg merge
10d 12m
Merged PRs (30d)
2

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 beemdevelopment/Aegis

All issues in beemdevelopment/Aegis

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.