Closed
Description
Preconditions (*)
- Magento Community 2.3.0
Steps to reproduce (*)
- go to Backend, Login with admin user
- go to Stores -> Attributes -> Product
- add new attribute (any values), set attribute code to custom_attribute_which_has_a_to_long_code_but_less_than_255
- click save attribute
Expected result (*)
- product attribute saved
- alternatively correct error message, that only 30 characters are allowed
Actual result (*)
- product attribute is not saved
- error message 'Attribute code "custom_attribute_which_has_a_to_long_code_but_less_than_255" is invalid. Please use only letters (a-z), numbers (0-9) or underscore(_) in this field, first character should be a letter.' is shown
Additional Information:
actual limit within the database for attribute code is varchar(255) which contradicts attribute code validation within https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php#L200 where only 30 characters are allowed as maximum
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates that Pull Request has been created to fix issueThe issue has been reproduced on latest 2.3 release