-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BW serve creating a new collection with specifying group(s) does not add group(s) to new collection #10985
Comments
Also, when i update an item using PUT on object/item/{id} I can for example, succesfully update the item name. However, when I want to change collectionIds, the request is accepted but the changes have not taken effect. |
Hello, Have you tried running bw sync after making the changes? |
Yes I have. When I update an item and then retrieve it using the API, the updated item is shown. However, when I update an item, execute BW sync, or use the API equivalent, and then retrieve the item using the API, it shows me the old, non-updated version. In both cases, the item is not actually updated in my vault when I refresh the web interface. |
Can you please share you full command that you are using? (Remove any personal info) |
Sure, just to be complete, first a working update; updating item name: I first get the item and use this response to populate my request body in which i update name to 'new name'. The item name is indeed updated. Now I want to add this item to a second collection. I again first get the item and use the response to populate the request body in which i add an collection_id to the list of collectionIds. The item is however not updated. |
Are you encoding your edits? - https://bitwarden.com/help/cli/#encode
|
No because I don't think I need to, right? I am using the vault management API with bw serve, https://bitwarden.com/help/vault-management-api/. I am following the documentation I can find there: |
Thank you for your patience and cooperation. After testing different scenarios, this is indeed a bug. Editing the item collection ID should allow you to change the collection, but it currently does not. I have reported this to our engineering team. |
Thank you! Could you also review the process of creating a new collection while specifying group(s) with bw serve? In my experience, this doesn’t work either. Looking forward to the fix! :) |
Steps To Reproduce
Expected Result
The specified group has access to the new collection.
Actual Result
The specified group has no access to the new collection.
Screenshots or Videos
No response
Additional Context
No response
Operating System
Linux
Operating System Version
Ubuntu 22.04.4 LTS
Shell
Bash
Build Version
2024.8.2
Issue Tracking Info
The text was updated successfully, but these errors were encountered: