-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#12075 :- Customer Email with diacritics isn't allowed #31003
#12075 :- Customer Email with diacritics isn't allowed #31003
Conversation
Hi @konarshankar07. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
|
||
class EmailAddress extends \Zend_Validate_EmailAddress implements \Magento\Framework\Validator\ValidatorInterface | ||
class EmailAddress extends LaminasEmailValidator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @konarshankar07. Thank you for your work. Could you explain your fix, please? I see that you have removed the part that disables TLD validation. But validation of the name in the email (before @) still in place.
Also, you've removed the interface mention from the validator. Could you shed some light on the reason, please?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @rogyar
I think we should remove the zendframework1 dependency from the magento and use the Laminas dependency to the magento core that's why I removed the interface and TLD validation and extended the laminas Email validator.Let me know your thoughts
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @konarshankar07. That makes sense, thank you for the explanation.
In the current version, we have the TLD validation set to false
. However, in Laminas hostname validator, the useTldCheck
set to true
by default. So it means that after your change the TLD will be validated (but should not).
Also, still not obvious how this change will fix validation of the THIS@mail.com
part of the email address that may contain diacritics.
Could you clarify the mentioned points, please?
Thanks.
Hi @konarshankar07. Could you please look at #31003 (comment)? |
Hi @konarshankar07, do you have any updates? |
Hi @konarshankar07. Could you please take a look at #31003 (comment)? |
@konarshankar07 @rogyar with changes from this PR we have the next error during install: |
@konarshankar07 please fix the issue mentioned above, I created a separate issue for removing a dependency here #31511. |
Hello @engcom-Charlie |
@magento run all tests |
1 similar comment
@magento run all tests |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @konarshankar07, can you update this PR with the latest mainline also have a look at the failed tests?
Thanks!
Hello, @konarshankar07. Unfortunately, we are closing this PR due to inactivity. If you want to continue your work on this issue, please one new one. Also, please do not replace the Zend_Validate with Laminas as such change poses a high risk. |
Hi @konarshankar07, thank you for your contribution! |
Description (*)
This PR will fix the issue with the email address validation for email address internationalization (EAI)
Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)