lastpass / lastpass-cli

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

lpass show --json entryname truncates the url #569

Open datfinesoul opened 3 years ago

datfinesoul commented 3 years ago

LastPass CLI v1.3.3.15.g8767b5e

OS: Ubuntu 18.04

After successfully creating an entry using the following command

printf "username: bob\npassword: 1234\nurl:http://bogusdomain.com" | \
  lpass edit --non-interactive --sync=now terraform/boo-bob

lpass show without the --json flag displays the URL (http://bogusdomain.com)

lpass show terraform/boo-bob
terraform/boo-bob [id: 2027030161116131480]
username: bob
password: 1234
url: http://bogusdomain.com

lpass show with the --json flag is showing a truncated url (http://)

lpass show terraform/boo-bob --json
[
  {
    "id": "2027030161116131480",
    "name": "boo-bob",
    "fullname": "terraform/boo-bob",
    "username": "",
    "password": "",
    "last_modified_gmt": "1599807622",
    "last_touch": "1599807565",
    "group": "terraform",
    "url": "http://",
    "note": "" 
  } 
]