Page 1 of 1

can't add user with .engineering email address

Posted: Tue Jun 14, 2016 10:11 am
by mike92117
I have a customer with an email address like joe@blahblah.engineering. ".engineering" is one of the newer domains (not all that new actually). There are lots of these new alternates to .com/.net/org. Anyway, I get this error message when I try to add him manually:

Email address should be in the format of name@domain.tld.

Mike

Re: can't add user with .engineering email address

Posted: Tue Jun 14, 2016 4:45 pm
by Naveed
The email addresses are validation using the CommerceBuilder.UI.WebControls.EmailAddressValidator, it allows 2-6 characters in this part of domain. You will require to either update the Regex defined in the CommerceBuilder.Utility.ValidationHelper.cs class or use some custom email validator in aspx page instead using the CommerceBuilder.UI.WebControls.EmailAddressValidator.

As an alternate you can use the asp RegularExpressionValidator to validate emails, please check the following links for details about how to use the RegularExpressionValidator :

http://www.java2s.com/Code/ASP/Validati ... dressC.htm
http://stackoverflow.com/questions/2652 ... validation

Re: can't add user with .engineering email address

Posted: Tue Jun 14, 2016 6:22 pm
by mike92117
Thanks and that's fine when one has the CommerceBuilder source - I don't.

In my opinion this should be fixed in the next release, don't you think? There are more and more of these TLDs, some very long. Anyone with a valid email address should be able to purchase, otherwise it's TLD-discrimination!

FYI: here is a list of what's currently available:

http://www.iana.org/domains/root/db

Re: can't add user with .engineering email address

Posted: Tue Jun 14, 2016 11:41 pm
by mazhar
n my opinion this should be fixed in the next release, don't you think?
Hi, I just reported this in our logs and we will look into it. There seems to be lot of new TLDs so yes maybe we should improve the regular expression. In couple of tests that I performed it seems like expression complain when domain extension is lengthy. For example it worked for TLDs like .online, .studio but complained for .photography. If I remove couple of characters and then try .photog then it works, I think expression is looking up to certain maximum length when validating Email addresses.

Re: can't add user with .engineering email address

Posted: Wed Jun 15, 2016 5:51 am
by mike92117
Thanks Mazhar. Any chance at a hotfix or a date when the next update will occur?

Mike

Re: can't add user with .engineering email address

Posted: Thu Jun 16, 2016 6:01 am
by Katie
Hello Mike,

We are planning on an upcoming service release. I'm not sure when it will be though. What version are you using?

Thanks
Katie

Re: can't add user with .engineering email address

Posted: Thu Jun 16, 2016 11:38 am
by mike92117
I'm on the latest release - R12

Re: can't add user with .engineering email address

Posted: Mon Jun 20, 2016 6:22 am
by Katie
Do you need a hot patch now, or can you wait until August for a service release update to Gold R12 which will have this issue plus a few more things fixed.

Thanks,
Katie

Re: can't add user with .engineering email address

Posted: Tue Jun 21, 2016 7:22 am
by mike92117
Thanks Katie. I'm probably fine until August, providing you can validate this as a temporary workaround that I've developed. I've done this on my staging site and it seems to work.

1. Register the account with the .engineering TLD but adding a .com to the end of it (e.g., mike@acme.engineering.com). This passes the regex validation.
2. Edit the four fields in the ac_Users table directly (UserName, LoweredUserName, Email, LoweredEmail) to the correct email address which would be mike@acme.engineering).

This apparently works, i.e., after making that edit, I can login successfully. I wasn't sure if the email address was in some way used as a password salt, but apparently not.

Mike