0.1.1: reject entry names that the list would hide #23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in the 0.1.0 pre-launch audit (correctness, non-blocking). Fix for 0.1.1.
Store::entry_path(passcore/src/lib.rs:213) accepts any name made only of normal path components. That includes.foo,work/.xandfoo/; the last one becomesfoo/.gpg. The editor doesn't check names either.What happens:
entries()(lib.rs:140) skips every name that starts with., so the entry never shows in the list. It can't be opened, edited or deleted on the phone.The data is intact in the repo and on the remote.
Fix:
entry_pathrejects any component that starts with.as well as a trailing/, and the editor shows the error. Add tests in passcore, plus one in tst_EntryEditor.Trunk (
lib.rs).