ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

LDAP On-the-fly user creation fails if mail is not set (Bug #1106)


Added by Jan Hülß at 2012-08-01 01:41 pm.


Status:Open Start date:2012-08-01
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Remote issue URL: Affected version:

Description

On-the-fly user creation for LDAP users fails, if no mail address is set within LDAP for this user. In the ChiliProject the atribute "Email" is set to the correct LDAP filed. The returned uninformative error message is:

Processing AccountController#login (for 10.10.4.51 at 2012-07-18 11:12:09) [POST]
  Parameters: {"action"=>"login", "authenticity_token"=>"oMiQHtR2CWiYHCmy7vluLN/oTVg1Yt4PeRu8/6q0cys=", "password"=>"[FILTERED]", "username"=>"name", "controller"=>"account", "back_url"=>"http%3A%2F%2Fea-tts%2F", "login"=>"Anmelden »"}

***** Debugger requested, but was not available: Start server with --debugger to enable *****

***** Debugger requested, but was not available: Start server with --debugger to enable *****

TypeError (can't convert false into String):
  app/models/user.rb:140:in `try_to_login'
  app/controllers/account_controller.rb:143:in `password_authentication'
  app/controllers/account_controller.rb:138:in `authenticate_user'
  app/controllers/account_controller.rb:26:in `login'
  /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

Rendering /var/www/chiliproject3/public/500.html (500 Internal Server Error)

Correct behaviour should be to promt the user for the missing information.

Further information in the discussion: https://www.chiliproject.org/boards/1/topics/1905

This is produced with ChiliProject 3.3.0.080c5b63c (SQLite)

Gems included by the bundle:
  * actionmailer (2.3.14)
  * actionpack (2.3.14)
  * activerecord (2.3.14)
  * activeresource (2.3.14)
  * activesupport (2.3.14)
  * acts-as-taggable-on (2.1.0)
  * bundler (1.0.21)
  * coderay (1.0.7)
  * fastercsv (1.5.5)
  * gravatarify (3.0.0)
  * i18n (0.4.2)
  * json (1.7.3)
  * liquid (2.3.0)
  * net-ldap (0.3.1)
  * rack (1.1.3)
  * rails (2.3.14)
  * rake (0.9.2.2)
  * rdoc (3.12)
  * ruby-openid (2.1.8)
  * rubytree (0.5.3)
  * sqlite3-ruby (1.2.5)
  * tzinfo (0.3.33)


History

Also available in: Atom PDF