Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368617 - Fix nick and openid uniqueness to allow blanks
Summary: Fix nick and openid uniqueness to allow blanks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: RecruitingWebapp (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joachim Bartosik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 18:38 UTC by Petteri Räty (RETIRED)
Modified: 2011-09-01 21:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2011-05-24 18:38:48 UTC
validates_uniqueness_of :nick, :if => :nick
  validates_uniqueness_of :openid, :if => :openid

These don't allow multiple blanks. Use :allow_blank for that.
Comment 1 Joachim Bartosik (RETIRED) gentoo-dev 2011-05-27 11:43:08 UTC
Could not reproduce problem with many users having empty nick/ openid. Test specifically for that:

https://github.com/ahenobarbi/Gentoo-Recruiters-App/commit/5deaf111d9ea5b2d7882f3ab1970a36211461287
Comment 3 Joachim Bartosik (RETIRED) gentoo-dev 2011-09-01 21:58:33 UTC
Fix was accepted.