Skip to content

After adding an item, it cannot be listed or read #12159

@aptly-io

Description

@aptly-io

Steps To Reproduce

A bw create item for an organization succeeds and its id is returned.
Then, after performing a bw sync --forced,
the item is no longer returned in a bw list items nor can it be retrieved with bw get item.

In the bitwarden web-app, the item is not show in the password manager. It is visible in the Admin Console though.

# Successfully created an item or an organization
$ bw create item eyJvcmdhbml6YXRpb25JZCI6ICIxZjc1MGUzOC03MDc1LTQ0YzQtYThiOC1iMjMxMDE1NWE0NTIiLCAiY29sbGVjdGlvbklkcyI6IG51bGwsICJmb2xkZXJJZCI6IG51bGwsICJ0eXBlIjogMSwgIm5hbWUiOiAidGl0bGUiLCAibm90ZXMiOiAiTXkgbm90ZTpcblRoZXJlIGFyZSBtYW55IC4uLlxuRG9udCBjb3VudCB0aGUgbGluZXNcbiIsICJmYXZvcml0ZSI6IHRydWUsICJsb2dpbiI6IHsidXNlcm5hbWUiOiAibmFtZSIsICJwYXNzd29yZCI6ICJzZWNyZXQiLCAidG90cCI6ICJ0b3RwIiwgInVyaXMiOiBbeyJ1cmkiOiAiaHR0cHM6Ly9kcm9vbS5iZSJ9XX0sICJmaWVsZHMiOiBudWxsLCAic2VjdXJlTm90ZSI6IG51bGwsICJjYXJkIjogbnVsbCwgImlkZW50aXR5IjogbnVsbH0=
{"passwordHistory":null,"revisionDate":"2024-11-26T19:52:42.526Z","creationDate":"2024-11-26T19:52:42.526Z","deletedDate":null,"object":"item","id":"bde4331a-9f82-492b-b43b-b23401479659","organizationId":"1f750e38-7075-44c4-a8b8-b2310155a452","folderId":null,"type":1,"reprompt":0,"name":"title","notes":"My note:\nThere are many ...\nDont count the lines\n","favorite":true,"login":{"fido2Credentials":[],"uris":[{"match":null,"uri":"https://droom.be"}],"username":"name","password":"secret","totp":"totp","passwordRevisionDate":null}}

# listing or getting succeeds (presumably because it is in the local cache)
$ bw list items
[{"passwordHistory":null,"revisionDate":"2024-11-26T19:52:42.526Z","creationDate":"2024-11-26T19:52:42.526Z","deletedDate":null,"object":"item","id":"bde4331a-9f82-492b-b43b-b23401479659","organizationId":"1f750e38-7075-44c4-a8b8-b2310155a452","folderId":null,"type":1,"reprompt":0,"name":"title","notes":"My note:\nThere are many ...\nDont count the lines\n","favorite":true,"login":{"fido2Credentials":[],"uris":[{"match":null,"uri":"https://droom.be"}],"username":"name","password":"secret","totp":"totp","passwordRevisionDate":null}}]
$ bw get item bde4331a-9f82-492b-b43b-b23401479659
{"passwordHistory":null,"revisionDate":"2024-11-26T19:52:42.526Z","creationDate":"2024-11-26T19:52:42.526Z","deletedDate":null,"object":"item","id":"bde4331a-9f82-492b-b43b-b23401479659","organizationId":"1f750e38-7075-44c4-a8b8-b2310155a452","folderId":null,"type":1,"reprompt":0,"name":"title","notes":"My note:\nThere are many ...\nDont count the lines\n","favorite":true,"login":{"fido2Credentials":[],"uris":[{"match":null,"uri":"https://droom.be"}],"username":"name","password":"secret","totp":"totp","passwordRevisionDate":null}}

# After syncing, the item seems gone

$ bw sync -f
Syncing complete.
$ bw get item bde4331a-9f82-492b-b43b-b23401479659
Not found.
$ bw list items
[]

Note the item properties are:

{
    "organizationId": "1f750e38-7075-44c4-a8b8-b2310155a452", 
    "collectionIds": null, 
    "folderId": null, 
    "type": 1, 
    "name": "title", 
    "notes": "My note:\\nThere are many ...\\nDont count the lines\\n", 
    "favorite": true, 
    "login": {
      "username": "name", 
      "password": "secret", 
      "totp": "totp", 
      "uris": [{"uri": "https://droom.be"}]
     }, 
    "fields": null, 
    "secureNote": null, 
    "card": null, 
    "identity": null
}

Expected Result

Expected the item to be return from bw list items and bw get item. Expected the item to be visible in the web-app Password Manager.

Actual Result

Empty list or Not found. error message

Screenshots or Videos

See the command sequence above

Additional Context

No response

Operating System

macOS

Operating System Version

12.7.6

Shell

Bash

Build Version

2024.11.1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliCLI Application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions