Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Error: wrong argument type Hash (expected Regexp) #43

Closed
s3rg3d opened this issue Sep 26, 2012 · 3 comments
Closed

Error: wrong argument type Hash (expected Regexp) #43

s3rg3d opened this issue Sep 26, 2012 · 3 comments
Assignees
Labels

Comments

@s3rg3d
Copy link

s3rg3d commented Sep 26, 2012

Hi,
I'm getting this error during sync for one user but I can't figure why.
My log looks like this :

-- Updating user 'user1'...
-- Updating user 'user2'...
-- Could not create user 'dummy1': "First name can't be blank", "Last name can't be blank", "Email can't be blank", "Login is invalid"
-- Could not create user 'dummy2': "Last name can't be blank", "Email can't be blank"
-- Could not create user 'dummy3': "Email can't be blank"
-- Updating user 'user3'...
rake aborted!
wrong argument type Hash (expected Regexp)
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:72:in match' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:72:indelete_matched'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:172:in call' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:172:insearch_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in foreach' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:insearch_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:170:in search_dir' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:inforeach'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in search_dir' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:170:insearch_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in foreach' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:insearch_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:70:in delete_matched' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache.rb:520:ininstrument'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:68:in delete_matched' /var/www/redmine/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:329:inupdate_closure_cache!'
/var/www/redmine/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:98:in sync_users' /var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:22 /var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:20:ineach'
/var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:20
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:inexecute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:inexecute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:ininvoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33 /usr/local/bin/rake:19:inload'
/usr/local/bin/rake:19
Tasks: TOP => redmine:plugins:redmine_ldap_sync:sync_users

@thorin
Copy link
Owner

thorin commented Sep 26, 2012

For now it should be solved if you disable the nested groups on the
settings page.

But it seems that the way I'm removing some groups from the disk cache
doesn't work on Rails 3.
I'll revise it as soon as I can.

On Wed, Sep 26, 2012 at 7:02 PM, sergedany notifications@github.com wrote:

Hi,
I'm getting this error during sync for one user but I can't figure why.
My log looks like this :

-- Updating user 'user1'...
-- Updating user 'user2'...
-- Could not create user 'dummy1': "First name can't be blank", "Last name
can't be blank", "Email can't be blank", "Login is invalid"
-- Could not create user 'dummy2': "Last name can't be blank", "Email
can't be blank"
-- Could not create user 'dummy3': "Email can't be blank"
-- Updating user 'user3'...
rake aborted!
wrong argument type Hash (expected Regexp)
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:72:in
match'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:72:in
delete_matched'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:172:in
call'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:172:in
search_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
foreach'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
search_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:170:in
search_dir'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
foreach'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
search_dir'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:170:in
search_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
foreach'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:166:in
search_dir'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:70:in
delete_matched'

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache.rb:520:in
instrument'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/cache/file_store.rb:68:in
delete_matched'

/var/www/redmine/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:329:in
update_closure_cache!'
/var/www/redmine/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:98:in
sync_users'
/var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:22
/var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:20:in
each'
/var/www/redmine/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:20
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
each'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
run'

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/local/bin/rake:19:inload'
/usr/local/bin/rake:19
Tasks: TOP => redmine:plugins:redmine_ldap_sync:sync_users


Reply to this email directly or view it on GitHubhttps://github.com//issues/43.

thorin added a commit that referenced this issue Sep 28, 2012
@thorin
Copy link
Owner

thorin commented Sep 28, 2012

Can you try branch redmine-2.x-43 and tell me if it solves it?

@s3rg3d
Copy link
Author

s3rg3d commented Oct 9, 2012

Sorry for the delay, i was out of office.

I tried with redmine-2.x-43 and it's working, problem solved ! Great job !

@s3rg3d s3rg3d closed this as completed Oct 9, 2012
thorin added a commit that referenced this issue Oct 13, 2012
Fixes wrong argument type hash (#43)
@ghost ghost assigned thorin Dec 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants