Overview
A secret-tool search containing a vertical bar returns every secret from the database.
The vertical bar needs to be at the begging or end of the query, otherwise the bug doesn't happen.
Steps to Reproduce
- Create a database with two secrets. One with an attribute
attr=1, and the other one with attr=2.
- Enable secret service integration.
- Run
secret-tool search --all attr "abc|"
Expected Behavior
secret-tool should return nothing, since there is no secret with attr equal to abc|. That's what gnome-keyring does in the same case.
Actual Behavior
secret-tool returns there two secrets.
Context
KeePassXC - Version 2.7.0
Revision: d7a9ef4
Operating System: Linux
Desktop Env: KDE
Windowing System: X11
Overview
A
secret-toolsearch containing a vertical bar returns every secret from the database.The vertical bar needs to be at the begging or end of the query, otherwise the bug doesn't happen.
Steps to Reproduce
attr=1, and the other one withattr=2.secret-tool search --all attr "abc|"Expected Behavior
secret-toolshould return nothing, since there is no secret withattrequal toabc|. That's what gnome-keyring does in the same case.Actual Behavior
secret-toolreturns there two secrets.Context
KeePassXC - Version 2.7.0
Revision: d7a9ef4
Operating System: Linux
Desktop Env: KDE
Windowing System: X11