mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-22 08:03:47 -05:00
[PR #4800] [MERGED] fix issue with adding ciphers to organizations on native ios app #7137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4800
Author: @stefan0xC
Created: 7/30/2024
Status: ✅ Merged
Merged: 7/30/2024
Merged by: @dani-garcia
Base:
main← Head:fix-ios-issue📝 Commits (2)
8174204add organizationID alias for native ios69385fcadd reverse sanity check📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
src/api/core/ciphers.rs(+5 -0)📄 Description
This should fix the issues reported in #4767 where an entry added via the native iOS app cannot be decrypted:

The problem seems to be that the iOS app sends an organizationID which serde fails to deseralize and because it's an optional argument adding the cipher will not fail but it will be added incorrectly to your personal vault, unless you have disabled personal ownerships. So to prevent such corruptions from occurring again I've added a reverse sanity check, just in case some other clients send the organization_id in an unrecognizable format.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.