Skip to content
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

Plugin crashes with SVN repositories #13

Open
jnhmn opened this issue Jul 10, 2017 · 1 comment
Open

Plugin crashes with SVN repositories #13

jnhmn opened this issue Jul 10, 2017 · 1 comment

Comments

@jnhmn
Copy link
Contributor

jnhmn commented Jul 10, 2017

This plugin seems to work only with git repositories.
If I open the repository view of a SVN repository, the server returns an HTTP 500 error.

Following the output of the production log:

Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"test01", "repository_id"=>"2"}
  Current user: admin (id=1)
  Rendered repositories/show.html.erb within layouts/base (5.1ms)
Completed 500 Internal Server Error in 122ms (ActiveRecord: 5.1ms)

ActionView::Template::Error (undefined method `entry' for nil:NilClass):
    1: <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
    2: 
    3: <div class="contextual">
    4:   <%= render :partial => 'navigation' %>
  plugins/readme_at_repositories/lib/display_readme.rb:17:in `view_repositories_show_contextual'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:96:in `call_hook'
  app/views/repositories/show.html.erb:1:in `_app_views_repositories_show_html_erb___1144634906139630312_38496960'
  app/controllers/repositories_controller.rb:125:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Redmine 3.3.4
Ruby 2.0.0
Rails 4.2.7.1
SVN 1.7.14

@ayaye
Copy link

ayaye commented Nov 26, 2019

The problem seems to be with repos without id.

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

2 participants