struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4569) EmailValidator flags .tech emails as invalid
Date Sat, 28 Nov 2015 16:14:11 GMT

    [ https://issues.apache.org/jira/browse/WW-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030574#comment-15030574
] 

Hudson commented on WW-4569:
----------------------------

SUCCESS: Integrated in Struts-JDK7-master #390 (See [https://builds.apache.org/job/Struts-JDK7-master/390/])
WW-4569 Adds support for .tech (lukaszlenart: rev 7f10be5c3711f5c545f798eed383a7f88d9176b1)
* core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java


> EmailValidator flags .tech emails as invalid
> --------------------------------------------
>
>                 Key: WW-4569
>                 URL: https://issues.apache.org/jira/browse/WW-4569
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.3.24
>         Environment: Linux, AWS
>            Reporter: Omer Dawelbeit
>             Fix For: 2.3.25, 2.5
>
>
> I've a customer with .tech email who gets an invalid email error message, my validation.xml
contains the following 
> {code:xml}
> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
> <validators>
> 	<field name="emailAddress">
> 		<field-validator type="requiredstring">
> 			<message key="error.email.required" />
> 		</field-validator>
> 		<field-validator type="email">
> 			<message key="error.email.invalid" />
> 		</field-validator>
> 	</field>
>     <field name="password">
>         <field-validator type="requiredstring">
>             <message key="error.password.required"/>
>         </field-validator>
>     </field>
> </validators>
> {code}
> After checking the documentation at 
> https://struts.apache.org/docs/email-validator.html it seems the pattern doesn't not
include .tech domain, which I believe were introduced in March 2015:
> {noformat}
> \\b^['_a-z0-9-\\+](\\.['_a-z0-9-\\+])@[a-z0-9-](\\.[a-z0-9-])\\.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|nato|net|org|pro|tel|travel|xxx)$\\b
> {noformat}
> Any workaround would be appreciated



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message