Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

CLI create attachment bug #63

Closed
ChristianTrolleMikkelsen opened this issue Mar 29, 2019 · 3 comments
Closed

CLI create attachment bug #63

ChristianTrolleMikkelsen opened this issue Mar 29, 2019 · 3 comments

Comments

@ChristianTrolleMikkelsen

Hi

We use Bitwarden cli a great deal and we recently decided to start uploading some attachments to some of our logins, by script.
When we call:

bw --session $sessionKey create attachment --file $pathToAttachment --itemid ($item.id)

We get the item returned but no where is the attachment visible.
The item is shared in an organization.
The user has write access to the collection in which the item resides.

Since there is nothing indicating an error has occoured we are stuck :).

Returned:
`
{
"object": "item",
"id": "X",
"organizationId": "Y",
"folderId": null,
"type": 1,
"name": "Z",
"notes": "-",
"favorite": false,
"login": {
"uris": [

],
"username": "-",
"password": "-",
"totp": "-",
"passwordRevisionDate": null

},
"collectionIds": [
"XYZ"
],
"revisionDate": "2019-03-29T14:12:20.800Z"
}
`

@kspearrin
Copy link
Member

Does it actually create the attachment if you view the item from another app?

@ChristianTrolleMikkelsen
Copy link
Author

We only use the web interface and the chrome extension and there we cannot see any attachments.

@kspearrin
Copy link
Member

Fixed in 1.7.4 coming out soon. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants