Search with schemas fails in cold keyrings
As you can see in chromium's issue 660005, searching items with schemas fails with cold keyrings.
This also was investigated in libsecret#7.
However, the actual problem is in gnome-keyring. When the item is in a cold keyring (hasn't been unlocked), the schema is set as "org.freedesktop.Secret.Generic", therefore the search fails.
To reproduce:
secret-tool store --label="gnome-keyring bug" xdg:schema foobar application bug
secret-tool lookup xdg:schema foobar application bug # here it works
gnome-keyring-daemon --replace # force cold keyrings
secret-tool lookup xdg:schema foobar application bug # now it fails
gnome-keyring should open a prompt to unlock the keyring, but it doesn't. However, if you remove the schema (secret-tool lookup application bug
), then the prompt works (because it doesn't get confused with "org.freedesktop.Secret.Generic").
This issue probably has more than 5 years.