Bug #12543

Email id with latin,utf-8 is not accepted while creating user

Added by Brad Buckingham over 1 year ago. Updated about 1 month ago.

Status:Closed
Priority:Normal
Assigned To:Amir Fefer
Category:Authentication
Target version:Team Daniel - iteration 3
Difficulty: Bugzilla link:1204667
Found in release: Pull request:https://github.com/theforeman/foreman-packaging/pull/1550, https://github.com/theforeman/foreman/pull/3305
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1204667
Description of problem:
Email id with latin,utf-8 is not accepted while creating user

Version-Release number of selected component (if applicable):
  1. rpm -q foreman
    foreman-1.7.2.13-1.el7sat.noarch

How reproducible:
everytime

Steps to Reproduce:
1.# hammer -v -u admin -p changeme --output=csv user create --firstname="8ugfuf1BFN" --lastname="0yWWyrdyMY" --password="yjaepmzj2z" --auth-source-id="1" --mail="择﷐[U+3AA37]﷑﷐[U+10CF69]﷑﷐[U+E9F5F]﷑﷐[U+53AE7]﷑﷐[U+D27C0]﷑﷐[U+78E3D]﷑﷐[U+1912D]﷑﷐[U+30F94]﷑﷐[U+26E96]﷑@somemail.com" --login="zf8jUe"
[ERROR 2015-03-23 06:27:54 Exception] Email address is invalid
Could not create the user:
Email address is invalid

2.
3.

Actual results:

Expected results:

Additional info:


Related issues

Related to Foreman - Bug #5811: User email validation doesn't exactly match specification Closed 05/20/2014
Related to Foreman - Refactor #14641: Simplify e-mail address regex New 04/14/2016

Associated revisions

Revision 263edc74
Added by Amir Fefer 6 months ago

Fixes #12543 - enable utf-8 encoding in email address

According to RFC 6532, the local part of an email address
can be non-ascii characters, and should support in utf-8.
The current email validation doesn't allow it,
so emails like Pelé@example.com and 我買@example.com are not supported

Revision a011df46
Added by Dominic Cleal about 1 month ago

refs #12543 - add mail dependency

History

#1 Updated by Dominic Cleal over 1 year ago

  • Related to Bug #5811: User email validation doesn't exactly match specification added

#2 Updated by Dominic Cleal over 1 year ago

  • Category set to Authentication

#3 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Amir Fefer
  • Pull request https://github.com/theforeman/foreman/pull/3305 added

#4 Updated by Amir Fefer 12 months ago

#5 Updated by Daniel Lobato Garcia 6 months ago

  • Target version set to Team Daniel - iteration 3

#6 Updated by Amir Fefer 6 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Dominic Cleal 6 months ago

  • Release set to 1.14.0

#8 Updated by The Foreman Bot about 1 month ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1550 added

Also available in: Atom PDF