Skip to content

NoMethodError (undefined method `find'...) when user logs in #3

Description

@evle-zzz

Getting following error when user logs in. If user was already logged in before plugin is installed everything works fine.

Environment:
Redmine version 4.0.4.stable
Ruby version 2.5.5-p157 (2019-03-15) [x86_64-linux-gnu]
Rails version 5.2.3

NoMethodError (undefined method `find' for #<ActionController::Parameters:0x000055dd39c946b0>):

plugins/redmine_ldap_sync/app/models/ldap_setting.rb:182:in `user_field'
plugins/redmine_ldap_sync/lib/ldap_sync/entity_manager.rb:39:in `block in get_user_fields'
plugins/redmine_ldap_sync/lib/ldap_sync/entity_manager.rb:38:in `inject'
plugins/redmine_ldap_sync/lib/ldap_sync/entity_manager.rb:38:in `get_user_fields'
plugins/redmine_ldap_sync/lib/ldap_sync/infectors/auth_source_ldap.rb:181:in `sync_user_fields'
plugins/redmine_ldap_sync/lib/ldap_sync/infectors/auth_source_ldap.rb:124:in `block in sync_user'
plugins/redmine_ldap_sync/lib/ldap_sync/entity_manager.rb:386:in `block in with_ldap_connection'
plugins/redmine_ldap_sync/lib/ldap_sync/entity_manager.rb:384:in `with_ldap_connection'
plugins/redmine_ldap_sync/lib/ldap_sync/infectors/auth_source_ldap.rb:105:in `sync_user'
plugins/redmine_ldap_sync/lib/ldap_sync/infectors/user.rb:94:in `try_to_login_with_ldap_sync'
app/controllers/account_controller.rb:216:in `password_authentication'
app/controllers/account_controller.rb:211:in `authenticate_user'
app/controllers/account_controller.rb:38:in `login'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions