additional_tags icon indicating copy to clipboard operation
additional_tags copied to clipboard

Stack overflow error when copying an issue

Open jwalkerbg opened this issue 5 years ago • 1 comments

Stack overflow error when copying an issue if additonal_tags is installed: Here is a part of Redmine log:

`Started GET "/projects/i109276/issues/3796/copy" for 192.168.20.177 at 2021-01-11 09:38:04 +0200 Processing by IssuesController#new as HTML Parameters: {"project_id"=>"i109276", "copy_from"=>"3796"} Current user: imc (id=3) Completed 500 Internal Server Error in 59ms (ActiveRecord: 13.1ms)

SystemStackError (stack level too deep):

plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:in copy_from' plugins/additional_tags/lib/additional_tags/patches/issue_patch.rb:69:in copy_from_with_tags' plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:in copy_from' plugins/additional_tags/lib/additional_tags/patches/issue_patch.rb:69:in copy_from_with_tags' plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:in copy_from' plugins/additional_tags/lib/additional_tags/patches/issue_patch.rb:69:in copy_from_with_tags' plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:in copy_from' plugins/additional_tags/lib/additional_tags/patches/issue_patch.rb:69:in copy_from_with_tags' ...... plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:in copy_from' app/controllers/issues_controller.rb:522:in build_new_issue_from_params' lib/redmine/sudo_mode.rb:65:in sudo_mode'

jwalkerbg avatar Jan 11 '21 07:01 jwalkerbg

Please see https://github.com/AlphaNodes/additionals/issues/71#issuecomment-591290491

This is a common problem. A plugin can only use alias_method OR super. There is no way, to use plugins which use different solutions for the same methods.

At the moment we depend on other plugins, which use alias_method. For this reason, we cannot use super in this plugin. Maybe this changes in some months, but for now, we cannot change.

In your special case this means, additional_tags is not compatible with the plugin issue_recurring

alexandermeindl avatar Jan 11 '21 08:01 alexandermeindl