lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

Issue adding new website to an existing shared folder #559

Closed SilentSib closed 4 years ago

SilentSib commented 4 years ago

Hi,

The issue appears on a CentOS 7 machine when using this command:

echo -ne "URL: test.blabla.biz\nUsername: superadmin\nPassword: test" | lpass add --non-interactive --sync=now 'Shared-superadmin-stuff/test.blabla.biz superadmin'

Returns: "Error: Unable to find shared folder for Shared-superadmin-stuff/test.blabla.biz superadmin"

If I use the same command and just change the folder I want the website to be created under to e.g. Shared-Ansible (which also exists), there's no error and it gets created just fine. Afaik, the only difference lies in the format of the shared folder, which in this case contains a dash between two words.

Version of lastpass-cli: latest from repo (1.3.1)

I have tried the same command on my own Ubuntu desktop machine where I've first tried it with v1.0.0 and with the latest compiled version (1.3.3.15.g8767b5e) and the same command works just fine on the folder Shared-superadmin-stuff. I have looked for solutions to this issue (or even reports) here in the reported issues and haven't found anything... Could you please help?

Thanks, SilentSib

SilentSib commented 4 years ago

Silly mistake, the difference in behavior was explained by the user logged in to lastpass, it's solved.