having a trailing space on username doesn't work

Bug #787313 reported by Hugh Davenport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Hugh Davenport

Bug Description

I only noticed this when I was using MaharaDroid, and the input autocompleted my username of hughdavenport, and when it autocompletes it puts a ' ' after it. The app then said I had an invalid token, though it was correct, removing ' ' made it work.

This also happens in manual login.

Wishlist most likely, but it would be a good idea to trim entered usernames or something, as a space is not allowed in the username (according to the error message that comes up when adding a username with a space)

Cheers,

Hugh

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

The CSV upload trims the username when adding

Revision history for this message
François Marier (fmarier) wrote :

Is that trimming when creating a new user in the site admin area or trimming in the Android app?

Changed in mahara:
status: New → Triaged
status: Triaged → Confirmed
importance: Undecided → Medium
Revision history for this message
Hugh Davenport (hugh-davenport) wrote : Re: [Bug 787313] Re: having a trailing space on username doesn't work

I would suggest trimming when creating new user, and either trimming in
the app, or trimming in /artefact/file/mobileuploads.php

On 24/05/11 16:31, François Marier wrote:
> Is that trimming when creating a new user in the site admin area or
> trimming in the Android app?
>
> ** Changed in: mahara
> Status: New => Triaged
>
> ** Changed in: mahara
> Status: Triaged => Confirmed
>
> ** Changed in: mahara
> Importance: Undecided => Medium
>

--
Hugh Davenport
803 2258
Developer
Catalyst Ltd.

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
status: Confirmed → In Progress
assignee: nobody → Hugh Davenport (hugh-catalyst)
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
milestone: none → 1.5.0
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.