doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
620 stars 83 forks source link

Unable to get Items with Spaces in Name #33

Closed dstengele closed 3 years ago

dstengele commented 3 years ago

I have some Entries which have Spaces in their name, e.g. "Atlassian (Privat)". When I try to get that Entry by executing rbw get "Atlassian (Privat)", rbw seems to ignore the Quotes and use the String as two arguments (Item Name and Folder) and yields the following result:

rbw get: couldn't find entry for '(Privat)@Atlassian': no entry found

My current workaround for those entries is to use the UUID but at the moment this does not work with the Rofi script I am using for accessing Bitwarden.

doy commented 3 years ago

i can't reproduce this - can you give me more information about how exactly you are running it?

dstengele commented 3 years ago

I tried to add an entry via the command line and get the same behaviour: image

When I add the testentry via the app, I can see the entry after a sync but I am unable to get it via a get command: image

Getting the entry via id works: image

I am using the latest release (0.5.2) from the AUR but I get the same errors with the Git version: image

I usually use zsh, if that is relevant, but the errors remain the same in bash. Also, using the Linux TTY, the same error occurs, so it should not have anything to do with the Terminal emulator as well I think.

xPMo commented 3 years ago

What is the output of type rbw?

dstengele commented 3 years ago

God, I am so dumb. I have a rbw script in my PATH that checks if a Systemd Unit with the rbw agent is running and starts it if neccesary. I have done this, as mbsync sometimes did not correctly trigger the rbw password prompt.

This script was simply missing quotes. Thank you for the heads up @xPMo, finally everything works again. :)