alphanodes / additionals

Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
https://www.redmine.org/plugins/additionals
GNU General Public License v2.0
132 stars 43 forks source link

Stack Level too Deep on wiki pages with redmine_wiki_extensions #80

Closed rroseselavy42 closed 4 years ago

rroseselavy42 commented 4 years ago

Hey folks,

on Redmine 4.1.1 with Rails 5.2.4.2 and Ruby 2.6.3 I'm seeing an infinite loop with the redmine wiki extension. I'm not sure which plugin is at fault (if any fault) but starting here.

When going to a wiki page where both plugins are active you end up in an infinite loops between: plugins/additionals/lib/additionals/patches/wiki_controller_patch.rb:23:in respond_to_with_additionals' plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_controller_patch.rb:42:inrespond_to'

in additionals that is:

      module InstanceMethods
        def respond_to_with_additionals(&block)
          if @project && @content
            if @_action_name == 'show'
              additionals_include_header
              additionals_include_footer
            end
          end
          respond_to_without_additionals(&block)
        end

in wiki extensions that is:

  def respond_to(&block)
    if @project and WikiExtensionsUtil.is_enabled?(@project) and @content
      if (@_action_name == 'show')
        wiki_extensions_include_header
        wiki_extensions_add_fnlist
        wiki_extensions_include_footer
      end
    end
    super(&block)
  end
alexandermeindl commented 4 years ago

Hi @rroseselavy42, thanks for reporting this! I fixed it this compatibility problem with my last commit in MASTER.

rroseselavy42 commented 4 years ago

can confirm working

alexandermeindl commented 4 years ago

Stable version released with this fix.