Skip to content

Error with markdown rendering #748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stissot opened this issue Feb 14, 2020 · 0 comments
Closed

Error with markdown rendering #748

stissot opened this issue Feb 14, 2020 · 0 comments

Comments

@stissot
Copy link

stissot commented Feb 14, 2020

500 server error when accessing a repository with a markdown README file

Redmine Git Hosting: 4.0.0
Redmine version: 4.1

The problem seems to be related to the deprecated task_list gem

Stack trace:

Started GET "/projects/projet/repository" for 192.168.1.10 at 2020-02-14 10:01:33 +0100
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"projet"}
  Current user: stissot (id=4)
  Rendering repositories/show.html.erb within layouts/base
  Rendered plugins/redmine_git_hosting/app/views/common/_git_urls.html.slim (10.9ms)
  Rendered plugins/redmine_git_hosting/app/views/repositories/_download_revision.html.slim (2.5ms)
  Rendered plugins/redmine_git_hosting/app/views/repositories/_show_top.html.slim (16.8ms)
  Rendered plugins/redmine_git_hosting/app/views/repositories/_git_hosting_navigation.html.slim (2.1ms)
  Rendered repositories/_navigation.html.erb (12.2ms)
  Rendered repositories/_breadcrumbs.html.erb (1.1ms)
  Rendered repositories/_dir_list_content.html.erb (39.0ms)
  Rendered repositories/_dir_list.html.erb (39.5ms)
  Rendered repositories/_revision_graph.html.erb (3.3ms)
  Rendered repositories/_revisions.html.erb (118.9ms)
  Rendered repositories/show.html.erb within layouts/base (326.6ms)
Completed 500 Internal Server Error in 504ms (ActiveRecord: 170.8ms)
  
ActionView::Template::Error (ERROR: Stack usage error: .//li[task_list_item(.)]):
    48:                    :key => User.current.rss_key) %>
    49:    <% end %>
    50: 
    51:    <%= call_hook(:view_repositories_show_bottom, repository: @repository) %><% other_formats_links do |f| %>
    52:     <%= f.link_to 'Atom',
    53:                   :url => {:action => 'revisions', :id => @project,
    54:                            :repository_id => @repository.identifier_param,
  
plugins/redmine_git_hosting/lib/redmine_git_hosting/markdown_renderer.rb:9:in `to_html'
plugins/redmine_git_hosting/lib/redmine_git_hosting/hooks.rb:66:in `get_formated_text'
plugins/redmine_git_hosting/lib/redmine_git_hosting/hooks.rb:39:in `view_repositories_show_bottom'
lib/redmine/hook.rb:63:in `block (2 levels) in call_hook'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant