Skip to content

Fix reads from vaults without a display name - #164

Merged
hazcod merged 1 commit into
hazcod:masterfrom
ozio:master
Nov 8, 2026
Merged

hazcod merged 1 commit into
hazcod:masterfrom
ozio:master

Conversation

@ozio

@ozio ozio commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Vaults with an empty or absent vault_name in vault.json can unlock successfully, but GetEntries and GetAllFields then reject them with vault is not initialized. This makes commands such as list, show, and pass fail even though dryrun succeeds.

Use the database connection to check initialization, without treating the optional display name as a prerequisite. Add regression tests for empty and absent names that open a copy of the existing test fixture, read entries and fields, and decrypt a field. Unopened vaults must still reject both read methods.

Validation: go test ./..., go vet ./..., and a native macOS arm64 build passed.

@hazcod
hazcod merged commit 620b655 into hazcod:master Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants