vaultwarden/src/db/models
BlackDex 6be26f0a38
Fix failing large note imports
When importing to Vaultwarden (or Bitwarden) notes larger then 10_000
encrypted characters are invalid. This because it for one isn't
compatible with Bitwarden. And some clients tend to break on very large
notes.

We already added a check for this limit when adding a single cipher, but
this caused issues during import, and could cause a partial imported
vault. Bitwarden does some validations before actually running it
through the import process and generates a special error message which
helps the user indicate which items are invalid during the import.

This PR adds that validation check and returns the same kind of error.
Fixes #3048
2023-01-09 19:11:58 +01:00
..
attachment.rs Update to diesel2 2022-10-23 00:49:23 +02:00
cipher.rs Fix failing large note imports 2023-01-09 19:11:58 +01:00
collection.rs Revert collection queries back to left_join 2022-12-12 12:21:48 +01:00
device.rs Use constant size generic parameter for random bytes generation 2022-11-11 11:59:27 +01:00
emergency_access.rs Cleanups and Fixes for Emergency Access 2022-12-02 09:44:23 +01:00
event.rs Add Organizational event logging feature 2022-11-27 23:36:34 +01:00
favorite.rs Update to diesel2 2022-10-23 00:49:23 +02:00
folder.rs Update to diesel2 2022-10-23 00:49:23 +02:00
group.rs Update to diesel2 2022-10-23 00:49:23 +02:00
mod.rs Add Organizational event logging feature 2022-11-27 23:36:34 +01:00
org_policy.rs Update to diesel2 2022-10-23 00:49:23 +02:00
organization.rs Disable groups by default and Some optimizations 2022-12-16 14:52:42 +01:00
send.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
two_factor_incomplete.rs Update to diesel2 2022-10-23 00:49:23 +02:00
two_factor.rs Update to diesel2 2022-10-23 00:49:23 +02:00
user.rs Cleanups and Fixes for Emergency Access 2022-12-02 09:44:23 +01:00