[
https://issues.apache.org/jira/browse/RANGER-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701512#comment-16701512
]
Qiang Zhang commented on RANGER-2294:
-------------------------------------
Review Requet:
https://reviews.apache.org/r/69466/
Solution patch, please see attachment:
[patch|https://issues.apache.org/jira/secure/attachment/12949806/0001-RANGER-2294-Front-end-and-back-end-email-address-reg.patch]
Test:
[FixedJsValidateEmail.jpg|https://issues.apache.org/jira/secure/attachment/12949805/FixedJsValidateEmail.jpg]
> Front-end and back-end email address regular expression should be the same
> --------------------------------------------------------------------------
>
> Key: RANGER-2294
> URL: https://issues.apache.org/jira/browse/RANGER-2294
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: master
> Reporter: Qiang Zhang
> Assignee: Qiang Zhang
> Priority: Major
> Labels: email, validation, web
> Attachments:
> 0001-RANGER-2294-Front-end-and-back-end-email-address-reg.patch,
> FixedJsValidateEmail.jpg, JavaValidateEmail.jpg, JsValidateEmail.jpg
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When edit user email address, and input the incorrect email address,
> there are two kinds of error message:
> 1.Input [email protected], there is error message:
> Invalid email address
> [JsValidateEmail.jpg|https://issues.apache.org/jira/secure/attachment/12949801/JsValidateEmail.jpg]
> 2.Input [email protected], there is error message:
> Please provide valid email address.
> [JavaValidateEmail.jpg|https://issues.apache.org/jira/secure/attachment/12949800/JavaValidateEmail.jpg]
> It is not reasonable when email address passed front-end validation,
> but failed back-end validation.
> So front-end and back-end email address regular expression should be the same,
> and add hint message for user to fill email address.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)