allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heith Seewald" <>
Subject [allura:tickets] #7833 Trim emails before saving them to mongo
Date Thu, 19 Mar 2015 18:34:04 GMT
- **Reviewer**: Heith Seewald


** [tickets:#7833] Trim emails before saving them to mongo**

**Status:** review
**Milestone:** unreleased
**Labels:** 42cc sf-2 sf-current 
**Created:** Thu Feb 12, 2015 02:01 PM UTC by Igor Bondarenko
**Last Updated:** Mon Mar 16, 2015 09:56 AM UTC
**Owner:** Igor Bondarenko

Right now you can claim address like `"   "` (note spaces in the end) or
even `"\t"` (tab in the end, you can't type this but can copy&paste from
some source. That's how I discovered this issue actually).

That's a problem because on the UI you can't see this blank symbols and later, when user types
the same email in, say, password recovery form, but without spaces in the end, system will
not find it, therefore user will not be able to recover password. Also, association of commits
with users and other stuff won't work.

Probably fix is as simple as adding `.strip()` inside `EmailAddress.canonical`, since we use
it everywhere already, but it's good to test/investigate further.

Don't sure what to do with existing emails like this which are already in mongo.


Sent from because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message