mirror of
https://github.com/bitwarden/server.git
synced 2025-02-17 02:01:53 +01:00
[AC-2021] Bump import limits (#3698)
* Increase individual import limits * Increase organizational import limits --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
parent
26ee43b770
commit
17ebbe9d9f
@ -40,8 +40,8 @@ public class ImportCiphersController : Controller
|
|||||||
public async Task PostImport([FromBody] ImportCiphersRequestModel model)
|
public async Task PostImport([FromBody] ImportCiphersRequestModel model)
|
||||||
{
|
{
|
||||||
if (!_globalSettings.SelfHosted &&
|
if (!_globalSettings.SelfHosted &&
|
||||||
(model.Ciphers.Count() > 6000 || model.FolderRelationships.Count() > 6000 ||
|
(model.Ciphers.Count() > 7000 || model.FolderRelationships.Count() > 7000 ||
|
||||||
model.Folders.Count() > 1000))
|
model.Folders.Count() > 2000))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("You cannot import this much data at once.");
|
throw new BadRequestException("You cannot import this much data at once.");
|
||||||
}
|
}
|
||||||
@ -57,8 +57,8 @@ public class ImportCiphersController : Controller
|
|||||||
[FromBody] ImportOrganizationCiphersRequestModel model)
|
[FromBody] ImportOrganizationCiphersRequestModel model)
|
||||||
{
|
{
|
||||||
if (!_globalSettings.SelfHosted &&
|
if (!_globalSettings.SelfHosted &&
|
||||||
(model.Ciphers.Count() > 6000 || model.CollectionRelationships.Count() > 12000 ||
|
(model.Ciphers.Count() > 7000 || model.CollectionRelationships.Count() > 14000 ||
|
||||||
model.Collections.Count() > 1000))
|
model.Collections.Count() > 2000))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("You cannot import this much data at once.");
|
throw new BadRequestException("You cannot import this much data at once.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user