[GH-ISSUE #4681] Extension Update Item Collections returns Error #1951

Closed
opened 2026-03-03 02:13:44 +03:00 by kerem · 2 comments
Owner

Originally created by @TheMardy on GitHub (Jun 27, 2024).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4681

Extension Change Collection not working

When trying to add/remove an item to an organization collection in the Extension, it errors.

Deployment environment

Your environment (Generated via diagnostics page)

  • Vaultwarden version: v1.30.5-a4c7fadb
  • Web-vault version: v2024.5.1
  • OS/Arch: linux/x86_64
  • Running within a container: true (Base: Debian)
  • Environment settings overridden: false
  • Uses a reverse proxy: true
  • IP Header check: true (X-Real-IP)
  • Internet access: true
  • Internet access via a proxy: false
  • DNS Check: true
  • Browser/Server Time Check: true
  • Server/NTP Time Check: true
  • Domain Configuration Check: true
  • HTTPS Check: true
  • Database type: SQLite
  • Database version: 3.45.0

Steps to reproduce

Open Extension (Chrome / Firefox, 2024.6.2) -> Item -> Edit -> Collections -> Check a different collection -> Save

Expected behaviour

Save the item and add it to the collection

Actual behaviour

It Errors.

Troubleshooting data

The extension uses a different request than the app/web interface:

Mobile:

[2024-06-20 13:14:53.052][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d
[2024-06-20 13:14:53.059][response][INFO] (put_cipher) PUT /api/ciphers/<uuid> => 200 OK
[2024-06-20 13:14:53.083][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:14:53.084][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:14:53.128][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:14:53.129][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:14:53.181][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:14:53.182][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK

[2024-06-20 13:15:12.043][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/collections
[2024-06-20 13:15:12.049][response][INFO] (put_collections_update) PUT /api/ciphers/<uuid>/collections => 200 OK
[2024-06-20 13:15:12.067][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:15:12.068][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:15:12.084][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:15:12.084][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:15:12.085][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:15:12.086][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:15:12.098][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:15:12.099][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK
[2024-06-20 13:15:12.128][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details
[2024-06-20 13:15:12.129][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK

Extension:

[2024-06-20 13:15:59.816][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/collections_v2
[2024-06-20 13:15:59.816][response][INFO] 404 Not Found
Originally created by @TheMardy on GitHub (Jun 27, 2024). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4681 ### Extension Change Collection not working <!-- Describe your issue here. --> When trying to add/remove an item to an organization collection in the Extension, it errors. ### Deployment environment ### Your environment (Generated via diagnostics page) * Vaultwarden version: v1.30.5-a4c7fadb * Web-vault version: v2024.5.1 * OS/Arch: linux/x86_64 * Running within a container: true (Base: Debian) * Environment settings overridden: false * Uses a reverse proxy: true * IP Header check: true (X-Real-IP) * Internet access: true * Internet access via a proxy: false * DNS Check: true * Browser/Server Time Check: true * Server/NTP Time Check: true * Domain Configuration Check: true * HTTPS Check: true * Database type: SQLite * Database version: 3.45.0 ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> Open Extension (Chrome / Firefox, 2024.6.2) -> Item -> Edit -> Collections -> Check a different collection -> Save ### Expected behaviour Save the item and add it to the collection ### Actual behaviour It Errors. ### Troubleshooting data The extension uses a different request than the app/web interface: Mobile: ``` [2024-06-20 13:14:53.052][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d [2024-06-20 13:14:53.059][response][INFO] (put_cipher) PUT /api/ciphers/<uuid> => 200 OK [2024-06-20 13:14:53.083][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:14:53.084][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:14:53.128][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:14:53.129][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:14:53.181][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:14:53.182][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:15:12.043][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/collections [2024-06-20 13:15:12.049][response][INFO] (put_collections_update) PUT /api/ciphers/<uuid>/collections => 200 OK [2024-06-20 13:15:12.067][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:15:12.068][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:15:12.084][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:15:12.084][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:15:12.085][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:15:12.086][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:15:12.098][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:15:12.099][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK [2024-06-20 13:15:12.128][request][INFO] GET /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/details [2024-06-20 13:15:12.129][response][INFO] (get_cipher_details) GET /api/ciphers/<uuid>/details => 200 OK ``` Extension: ``` [2024-06-20 13:15:59.816][request][INFO] PUT /api/ciphers/0d673397-9bca-4bd4-b5ad-a51f8456813d/collections_v2 [2024-06-20 13:15:59.816][response][INFO] 404 Not Found ```
Author
Owner

@BlackDex commented on GitHub (Jun 27, 2024):

We are currently missing that endpoint and it is also needed for newer web-vaults.

<!-- gh-comment-id:2194187133 --> @BlackDex commented on GitHub (Jun 27, 2024): We are currently missing that endpoint and it is also needed for newer web-vaults.
Author
Owner

@tessus commented on GitHub (Jul 7, 2024):

the endpoint has been added, so I think you can close this issue.

<!-- gh-comment-id:2212549665 --> @tessus commented on GitHub (Jul 7, 2024): the endpoint has been added, so I think you can close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1951
No description provided.