Skip to content

Commit d70d5f9

Browse files
committed
ACP2E-4119: Product import failing due to Description length exceeding 65,536 characters Validation
1 parent 47721be commit d70d5f9

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/ValidatorTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,14 @@ public static function attributeValidationProvider()
250250
false,
251251
'unique_attribute',
252252
false
253-
]
253+
],
254+
[
255+
'any_behavior',
256+
['type' => 'text', 'is_required' => false],
257+
['product_type' => 'any', 'text_attribute' => str_repeat('a', 65536)],
258+
true,
259+
'text_attribute',
260+
],
254261
];
255262
}
256263

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2013 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\ImportExport\Model\Import\Entity;
77

@@ -37,7 +37,7 @@ abstract class AbstractEntity implements EntityInterface
3737

3838
public const DB_MAX_VARCHAR_LENGTH = 256;
3939

40-
public const DB_MAX_TEXT_LENGTH = 65536;
40+
public const DB_MAX_TEXT_LENGTH = 16_777_215;
4141

4242
public const ERROR_CODE_SYSTEM_EXCEPTION = 'systemException';
4343
public const ERROR_CODE_COLUMN_NOT_FOUND = 'columnNotFound';

0 commit comments

Comments
 (0)