I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1892

Searching for users in Groups not possible

Added by Daniel Seifert about 13 years ago. Updated about 12 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
Start date:
14 Nov 2011
Due date:
28 Sep 2012
% Done:

0%

Redmine version:
External issue:

Description

With extended_profile installed, go to Administration→Groups, open a group and select the “Users” tab. Now typing in the “search for user” field will cause an internal server error.

http://www.redmine.org/issues/5434 has the same problem.

This is with all other plugins removed.

A NoMethodError occurred in groups#autocomplete_for_user:

 undefined method `call' for nil:NilClass

 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:103:in `like'
/var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:103:in `like'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:186:in `send'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:186:in `method_missing'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2182:in `with_scope'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `__send__'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `with_scope'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:179:in `method_missing'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:186:in `send'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:186:in `method_missing'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2182:in `with_scope'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `__send__'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `with_scope'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `__send__'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:118:in `with_scope'
 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/named_scope.rb:179:in `method_missing'
 [RAILS_ROOT]/app/controllers/groups_controller.rb:135:in `autocomplete_for_user'
 /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
 ...

History

#1 Updated by Andriy Lesyuk almost 13 years ago

  • Status changed from New to Open
  • Target version set to 0.0.3

#2 Updated by Andriy Lesyuk almost 13 years ago

Can it be related to #1856?

#3 Updated by Andriy Lesyuk almost 13 years ago

Got something like this on ChiliProject:

NoMethodError (undefined method `call' for nil:NilClass):
  app/controllers/groups_controller.rb:130:in `autocomplete_for_user'
  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Still not getting how the plugin can cause this...

#4 Updated by Andriy Lesyuk almost 13 years ago

  • Target version deleted (0.0.3)
  • External issue set to #5434

#5 Updated by Andriy Lesyuk almost 13 years ago

  • Status changed from Open to Incomplete

Not sure how to fix this issue and what is causing it... Most likely I won’t fix it!

Most likely you don’t need it to be fixed too... Just released brand new version of this plugin which should not contain this bug!

#6 Updated by Andriy Lesyuk almost 13 years ago

  • Target version set to 86

#7 Updated by Daniel Seifert almost 13 years ago

Tested it again with the new version and extended_fields and the issue seems to be gone. Thx!

#8 Updated by Andriy Lesyuk about 12 years ago

  • Due date set to 28 Sep 2012
  • Status changed from Incomplete to Won't Fix
  • Target version deleted (86)

Also available in: Atom PDF

Terms of use | Privacy policy