Unique username generation fails when uppercase usernames exist

Bug #823080 reported by Richard Mansfield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

If you register with the name "Nigel McNie", the default username that gets picked for you is "nigelmcnie", and if there's already a "nigelmcnie" user, you get "nigelmcnie1".

But if there's already a "NigelMcNie" user, you *should* get "nigelmcnie1", but you get "nigelmcnie" because the check is case-sensitive. This causes a duplicate key error when you confirm registration.

Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Richard Mansfield (richard-mansfield)
milestone: none → 1.5.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/571
Committed: http://gitorious.org/mahara/mahara/commit/2e59cda64813e3f4e34220200223755de6ee3c41
Submitter: Hugh Davenport (<email address hidden>)
Branch: master

commit 2e59cda64813e3f4e34220200223755de6ee3c41
Author: Richard Mansfield <email address hidden>
Date: Tue Aug 9 17:48:54 2011 +1200

    Use case-insensitive check for existing usernames (bug #823080)

    Change-Id: I5b07f6bd45ac7f21084b6b42fb6078fdccae362b
    Signed-off-by: Richard Mansfield <email address hidden>

Changed in mahara:
status: Confirmed → Fix Committed
Melissa Draper (melissa)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.