Skip to content

NoMethodError undefined method 'fetch' #5

Description

@yuxinvalo

Hi,
think to contribute this plugin, it helps a lot!
But there is a problem when I try to test it.
Problem reproduce:

  1. I finish configurations
  2. I use a redmine user without group or with group and execute
  3. No thing happened and in the console, I got msg like :
    image

In redmine production.log :

Rendered plugins/redmine_ldap_sync/app/views/ldap_settings/edit.html.erb within layouts/admin (97.9ms)
Rendered admin/_menu.html.erb (9.2ms)
Rendering layouts/base.html.erb
Rendered layouts/base.html.erb (156.1ms)
Completed 200 OK in 435ms (Views: 237.7ms | ActiveRecord: 80.3ms)
Started GET "/admin/ldap_sync/base_settings.js" for 127.0.0.1 at 2020-02-26 21:33:44 +0530
Processing by LdapSettingsController#base_settings as JS
Current user: admin (id=1)
Rendering plugins/redmine_ldap_sync/app/views/ldap_settings/base_settings.js.erb
Rendered plugins/redmine_ldap_sync/app/views/ldap_settings/base_settings.js.erb (7.7ms)
Completed 200 OK in 123ms (Views: 49.7ms | ActiveRecord: 48.2ms)
Started PUT "/admin/ldap_sync/2/test.text" for 127.0.0.1 at 2020-02-26 21:34:00 +0530
Processing by LdapSettingsController#test as TEXT
Parameters: {"id"=>"2"}
Current user: admin (id=1)
Completed 500 Internal Server Error in 81ms (ActiveRecord: 52.7ms)

NoMethodError (undefined method `fetch' for nil:NilClass):

plugins/redmine_ldap_sync/app/controllers/ldap_settings_controller.rb:83:in test' lib/redmine/sudo_mode.rb:65:in sudo_mode'
plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:72:in `call'

Redmine version:
Environment:
Redmine version 4.1.0.stable
Ruby version 2.4.9-p362 (2019-10-02) [x86_64-linux-gnu]
Rails version 5.2.4.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.9.3
Mercurial 3.7.3
Cvs 1.12.13
Bazaar 2.7.0
Git 2.24.1
Filesystem
Redmine plugins:
redmine_dmsf 2.4.2
redmine_ldap_sync 2.2.0
redmine_omniauth_gitlab 0.0.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions