Admin: Bulk user search reports incorrect number of emails found if capitalisation is different

Description

  1. Log in as admin

  2. Go to manage users > bulk email search

  3. Search for an email address with different capitalisation than appears in the account records (eg if the email address is foo@ao3.org, search Foo@ao3.org)

  4. The result will say "1 emails searched. 0 found. 1 not found." and list the email address that you searched (eg Foo@ao3.org), but below that section will be displayed the account with the differently punctuated email address (foo@ao3.org)

  5. Download the CSV output

  6. Open the CSV output in your preferred program

  7. It will have an entry for "both" email addresses, one with an account next to it, one without.

What I expect to happen:

I would expect it to ignore capitalisation altogether, and just return that it found the email address I searched, and list it once in the csv.

Please also test that:

  • the “Not found” header does not display when all results are found

  • the text under the field where you enter the email addresses no longer mentions “URLs”

 

Environment

None

Assignee

Ariana

Reporter

Alison Watson

Roadmap

Admin

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9
Configure