From 17ebbe9d9f3923986f862067d2fb14f19db50a6e Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:18:20 +0100 Subject: [PATCH] [AC-2021] Bump import limits (#3698) * Increase individual import limits * Increase organizational import limits --------- Co-authored-by: Daniel James Smith --- src/Api/Tools/Controllers/ImportCiphersController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api/Tools/Controllers/ImportCiphersController.cs b/src/Api/Tools/Controllers/ImportCiphersController.cs index b480e9c5c..7c9752076 100644 --- a/src/Api/Tools/Controllers/ImportCiphersController.cs +++ b/src/Api/Tools/Controllers/ImportCiphersController.cs @@ -40,8 +40,8 @@ public class ImportCiphersController : Controller public async Task PostImport([FromBody] ImportCiphersRequestModel model) { if (!_globalSettings.SelfHosted && - (model.Ciphers.Count() > 6000 || model.FolderRelationships.Count() > 6000 || - model.Folders.Count() > 1000)) + (model.Ciphers.Count() > 7000 || model.FolderRelationships.Count() > 7000 || + model.Folders.Count() > 2000)) { throw new BadRequestException("You cannot import this much data at once."); } @@ -57,8 +57,8 @@ public class ImportCiphersController : Controller [FromBody] ImportOrganizationCiphersRequestModel model) { if (!_globalSettings.SelfHosted && - (model.Ciphers.Count() > 6000 || model.CollectionRelationships.Count() > 12000 || - model.Collections.Count() > 1000)) + (model.Ciphers.Count() > 7000 || model.CollectionRelationships.Count() > 14000 || + model.Collections.Count() > 2000)) { throw new BadRequestException("You cannot import this much data at once."); }