← Back to team overview

mahara-contributors team mailing list archive

[Bug 1714082] Re: The user's primary email address is not checked in a case insensitive way

 

Scenario: Log in as Site admin -> browse to Add user page -> Try creating users with the following emails and verify the Error message displayed
1) Log in as Site admin
2) Browse to Admin menu > Users > Add user
3) Try creating users with the following emails and verify the Error message displayed = "This email address has already been registered here."
   a) usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔
   b) Usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔
   c) userA@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔
   d) userā@example.com = error expected = "Invalid email address" ✔
   e) UserA@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔

Scenario: New user Browse to the Mahara site register page and wants to register with Institution One
1) Browse to the Mahara site register page 
2) Try creating users with the following emails and verify the Error message displayed
   a) usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✘
   b) Usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✘
   c) userA@xxxxxxxxxxx = error expected = "This email address has already been registered here."✘
   d) userā@example.com = error expected = "Invalid email address" ✔
   e) UserA@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔

Scenario: Log in as User99 (UserA@xxxxxxxxxxx) and try and add variants of the same email address as listed below
1) Log in as User99 (UserA@xxxxxxxxxxx)
2) Browse to User profile page - click tab "Contact information
3) Add the following email addresses (ensure you click the Save profile button at btm of page after every addition of an email address
   a) usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✘
   b) Usera@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✘
   c) userA@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✘
   d) userā@example.com = error expected = "Invalid email address" ✔
   e) UserA@xxxxxxxxxxx = error expected = "This email address has already been registered here." ✔

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1714082

Title:
  The user's primary email address is not checked in a case insensitive
  way

Status in Mahara:
  In Progress

Bug description:
  Currently you can create 2 users, via the Admin -> Users -> Add user
  screen, with this:

  username: Test one   email: UserA@xxxxxxxxxxx
  username: Test two   email: usera@xxxxxxxxxxx

  but not another user with

  username: Test three   email: usera@xxxxxxxxxxx

  As it complains the email address 'usera@xxxxxxxxxxx' is used

  However, with email addresses the domain part is case insensitive and
  only the username part is case sensitive - yet saying that most email
  servers treat the username part also as case insensitive to avoid
  email delivery confusion - see https://www.lifewire.com/are-email-
  addresses-case-sensitive-1171111

  To also avoid confusion within Mahara we should limit the primary
  email address to be case insensitive unique.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1714082/+subscriptions


References