Started GET "/projects/my_sweet_project/repository" for 127.0.0.1 at 2015-05-19 15:47:25
-0400
Processing by RepositoriesController#show as HTML
Parameters: {"id"=>"my_sweet_project"}
Current user: bofh (id=69)
Mysql2::Error: Column 'address' in where clause is ambiguous: SELECT DISTINCT `users`.* FROM `users` INNER JOIN `email_addresses` ON `email_addresses`.`user_id` = `users`.`id` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND (LOWER IN ('pkgsrc@futurelinkcorporation.com')) ORDER BY `users`.`id` ASC LIMIT 1
Completed 500 Internal Server Error in 264ms (ActiveRecord: 17.9ms)
ActiveRecord::StatementInvalid (Mysql2::Error: Column 'address' in where clauseis ambiguous: SELECT DISTINCT `users`.* FROM `users` INNER JOIN `email_addresses` ON `email_addresses`.`user_id` = `users`.`id` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND (LOWER IN 'pkgsrc@futurelinkcorporation.com'
)) ORDER BY `users`.`id` ASC LIMIT 1):
app/models/user.rb:445:in `find_by_mail'
app/models/repository.rb:324:in `find_committer_user'
app/models/changeset.rb:98:in `before_create_cs'
app/models/repository/git.rb:218:in `save_revision'
app/models/repository/git.rb:207:in `block (2 levels) in save_revisions'
app/models/repository/git.rb:204:in `block in save_revisions'
app/models/repository/git.rb:203:in `each'
app/models/repository/git.rb:203:in `save_revisions'
app/models/repository/git.rb:153:in `fetch_changesets'
app/controllers/repositories_controller.rb:114:in `show'
Patch attached. Note: I'm not a Ruby programmer. There might be better ways to fix this.