can't add user with .engineering email address

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

can't add user with .engineering email address

Post by mike92117 » Tue Jun 14, 2016 10:11 am

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

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

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

Post by Naveed » Tue Jun 14, 2016 4:45 pm

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

mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

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

Post by mike92117 » Tue Jun 14, 2016 6:22 pm

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

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

Post by mazhar » Tue Jun 14, 2016 11:41 pm

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.

mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

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

Post by mike92117 » Wed Jun 15, 2016 5:51 am

Thanks Mazhar. Any chance at a hotfix or a date when the next update will occur?

Mike

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

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

Post by Katie » Thu Jun 16, 2016 6:01 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

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

Post by mike92117 » Thu Jun 16, 2016 11:38 am

I'm on the latest release - R12

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

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

Post by Katie » Mon Jun 20, 2016 6:22 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

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

Post by mike92117 » Tue Jun 21, 2016 7:22 am

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

Post Reply