Skip to content
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

Fix for email addresses with accented and non-ASCII characters (IMAP sync) #956

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ludo444
Copy link

@Ludo444 Ludo444 commented Oct 7, 2019

Occasionally during IMAP sync the email address is received with foreign non-ASCII characters
which are in PHP treated separately from purely ASCII ones. This later creates SQL Unique violation
as it is flushed into database, where it's treated identically as ASCII characters.

For example:

is added to addresses under different key during IMAP sync. However during flush to database both
above addresses are treated as '[email protected]', so it triggers MySQL error with oro_email_address_uq constraint.
This converts it to use only ASCII characters for email.

… IMAP sync

Occasionally during IMAP sync the email address is received with foreign non-ASCII characters
which are in PHP treated separately from purely ASCII ones. This later creates SQL Unique violation
as it is flushed into database, where it's treated identically as ASCII characters.

For example:
- émá[email protected]
- [email protected]

is added to addresses under different key during IMAP sync. However during flush to database both
above addresses are treated as '[email protected]', so it triggers MySQL error with `oro_email_address_uq` constraint.
This converts it to use only ASCII characters for email.
@orocla
Copy link

orocla commented Oct 7, 2019

Thank you for your pull request.

It looks like this may be your first contribution to an Oro, Inc. open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at http://www.orocrm.com/contributor-license-agreement/

If you've already signed the CLA, it's possible we don't have your GitHub username or you're using a different email address. GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account. Please sign the CLA again using the correct GitHub username and email address or see this help article on setting the email on your git commits.

Once you've signed the CLA, please allow for some time for the submission to be processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants