Open veenone opened 2 months ago
Hello,
I would like to report an issue where error 500 is returned when new rule link is selected from Role page.
please find the debug log :
D, [2024-05-29T18:25:17.265012 #3600568] DEBUG -- : [84e93142-e32c-4c21-b119-9a75898ddb95] CACHE ViewCustomize Load (0.0ms) SELECT view_customizes. FROM view_customizes ORDER BY view_customizes.id ASC I, [2024-05-29T18:25:17.265177 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Rendered layouts/base.html.erb (Duration: 27.2ms | Allocations: 11348) I, [2024-05-29T18:25:17.265246 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Rendered layout layouts/admin.html.erb (Duration: 36.6ms | Allocations: 20493) I, [2024-05-29T18:25:17.265465 #3600568] INFO -- : [84e93142-e32c-4c21-b119-9a75898ddb95] Completed 200 OK in 43ms (Views: 32.2ms | ActiveRecord: 6.1ms | Allocations: 22142) I, [2024-05-29T18:25:25.512940 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Started GET "/groups/374/assign_rules/new" for 10.8.9.174 at 2024-05-29 18:25:25 +0700 I, [2024-05-29T18:25:25.513805 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Processing by AssignRulesController#new as HTML I, [2024-05-29T18:25:25.513874 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Parameters: {"group_id"=>"374"} D, [2024-05-29T18:25:25.515906 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] (0.4ms) SELECT MAX(tokens.updated_on) FROM tokens WHERE tokens.user_id = 1 AND tokens.value = 'c0a07ee05a8289f118a8a9c7d603e221f3b24f5c' AND tokens.action = 'session' D, [2024-05-29T18:25:25.516717 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] (0.3ms) SELECT MAX(settings.updated_on) FROM settings D, [2024-05-29T18:25:25.517941 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] User Load (0.3ms) SELECT users. FROM users WHERE users.type IN ('User', 'AnonymousUser') AND users.status = 1 AND users.id = 1 LIMIT 1 I, [2024-05-29T18:25:25.518225 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Current user: admin (id=1) D, [2024-05-29T18:25:25.519002 #3600568] DEBUG -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Group Load (0.2ms) SELECT users.* FROM users WHERE users.type IN ('Group', 'GroupBuiltin', 'GroupAnonymous', 'GroupNonMember') AND users.id = 374 LIMIT 1 I, [2024-05-29T18:25:25.519467 #3600568] INFO -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.2ms | Allocations: 1254) F, [2024-05-29T18:25:25.519866 #3600568] FATAL -- : [4d33f48d-8e7d-4315-900c-a590177a4ee4] [4d33f48d-8e7d-4315-900c-a590177a4ee4] ArgumentError (wrong number of arguments (given 2, expected 0..1)): [4d33f48d-8e7d-4315-900c-a590177a4ee4] [4d33f48d-8e7d-4315-900c-a590177a4ee4] plugins/redmine_auto_assign_group/app/models/assign_rule.rb:23:in initialize' [4d33f48d-8e7d-4315-900c-a590177a4ee4] plugins/redmine_auto_assign_group/app/controllers/assign_rules_controller.rb:10:innew' [4d33f48d-8e7d-4315-900c-a590177a4ee4] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
view_customizes
id
tokens
updated_on
user_id
value
action
settings
users
type
status
initialize' [4d33f48d-8e7d-4315-900c-a590177a4ee4] plugins/redmine_auto_assign_group/app/controllers/assign_rules_controller.rb:10:in
This is my setup :
Environment: Redmine version 5.1.2.stable Ruby version 3.0.2-p107 (2021-07-07) [x86_64-linux-gnu] Rails version 6.1.7.7 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Purplemine2-2.16.2 (includes JavaScript) SCM: Git 2.34.1 Filesystem Redmine plugins: computed_custom_field 1.0.7 flux_tags 1.0.3 inplace_issue_editor 1.1.0 periodictask 4.2.1 redmine_advanced_checklists 2.1.3 redmine_auto_assign_group 0.1.2 redmine_base_deface 5.1.1 redmine_better_overview 5.1.0 redmine_closed_date 0.1.1 redmine_contacts 4.4.0 redmine_custom_workflows 2.1.0 redmine_customize_core_fields 1.0.0 redmine_dashboard 2.15.0 redmine_dmsf 3.1.3 redmine_home_page_redirector 2.0.0 redmine_impersonate 2.0.0 redmine_indicator 0.2.16 redmine_issue_dynamic_edit 0.9.2 redmine_issue_todo_lists2 2.1.8 redmine_issues_tree 0.0.15 redmine_ldap_sync 2.3.1 redmine_logs 0.3.0 redmine_mail_recipient 0.3.0 redmine_mail_template 0.3.0 redmine_reply_to_author_email 0.0.1 redmine_reveal 0.4.1 redmine_tint_issues 1.3.2 redmine_webhook_plugin 1.0.0 redmine_wiki_fix_toc 0.1.0 redmine_xapian 3.0.5 view_customize 3.5.1 watchers 0.0.2
It does not reproduce in my environment. I think it is a strange situation to have new rule link on Role page. Does it happen even if I check it with no other plugins? There may be a conflict.
Hello,
I would like to report an issue where error 500 is returned when new rule link is selected from Role page.
please find the debug log :
This is my setup :