-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Lack of email length validation exposes the website id during customer creation #40842
Copy link
Copy link
Open
Labels
Area: AccountComponent: CustomerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.9Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Metadata
Metadata
Assignees
Labels
Area: AccountComponent: CustomerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.9Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Ready for Development
Preconditions and environment
Steps to reproduce
Expected result
An
"Email" uses too many characters.or similar exception should be thrown.Actual result
A raw exception is being thrown instead, exposing the website id in the process:
Found by: Dilnoza (QA team)
Additional information
The
customer_entity.emailfield at database has a 255 char limit, causing the$customerModel->save();operation at the customer repository to fail silently. The reported raw exception is thrown within the customer repositorysave()method at app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php:L320.Release note
No response
Triage and priority