[PR #135] [MERGED] Deserialize "null" to empty Vec for Collections #2491

Closed
opened 2025-11-07 07:44:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/135
Author: @mprasil
Created: 8/14/2018
Status: Merged
Merged: 8/14/2018
Merged by: @dani-garcia

Base: betaHead: empty_collection


📝 Commits (1)

  • 00b8829 Deserialize "null" to empty Vec for Collections

📊 Changes

1 file changed (+12 additions, -1 deletions)

View changed files

📝 src/api/core/organizations.rs (+12 -1)

📄 Description

When adding/editing user and giving access to all collections, the collection list is now set to null and causes deserialization failure. This change deserializes this back to empty Vec.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/135 **Author:** [@mprasil](https://github.com/mprasil) **Created:** 8/14/2018 **Status:** ✅ Merged **Merged:** 8/14/2018 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `beta` ← **Head:** `empty_collection` --- ### 📝 Commits (1) - [`00b8829`](https://github.com/dani-garcia/vaultwarden/commit/00b882935f160e6d7567d9a4d2618e02bba96e78) Deserialize "null" to empty Vec for Collections ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/organizations.rs` (+12 -1) </details> ### 📄 Description When adding/editing user and giving access to all collections, the collection list is now set to _null_ and causes deserialization failure. This change deserializes this back to empty Vec. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-07 07:44:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#2491