Skip to content

Error when checking STATISTICS of subversion (SVN) repository #257

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
nicesw123 opened this issue Aug 6, 2014 · 1 comment
Closed

Error when checking STATISTICS of subversion (SVN) repository #257

nicesw123 opened this issue Aug 6, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@nicesw123
Copy link

Using 0.8-devel. (Update: this also occurs with 0.7.x)

I have some subversion repositories also. When accessing statistics for those subversion repos, I get Internal Error.

production.log is

Started GET "/redmine/projects/mytest/repository/statistics" for 192.1.0.202 at 2014-08-06 10:33:25 +0200
Processing by RepositoriesController#stats as HTML
  Parameters: {"id"=>"mytest"}
  Current user: nicesw123 (id=4)
  Rendered plugins/redmine_git_hosting/app/views/repositories/stats.html.erb within layouts/base (840.8ms)
Completed 500 Internal Server Error in 867.7ms

ActionView::Template::Error (undefined method `gsub' for nil:NilClass):
    82:   <div id="statistics-contributors">
    83:     <ul class="thumbnails">
    84:       <% author_charts = [] %>
    85:       <% @repository.commits_per_author.each do |commits_data| %>
    86:         <% idx = @repository.commits_per_author.index(commits_data) %>
    87:         <% author_charts.push("chart_commits_per_author_#{idx}") %>
    88:         <%= javascript_tag do %>
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/repository_patch.rb:202:in `block in commits_per_author'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/repository_patch.rb:198:in `each'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/repository_patch.rb:198:in `commits_per_author'
  plugins/redmine_git_hosting/app/views/repositories/stats.html.erb:85:in `_plugins_redmine_git_hosting_app_views_repositories_stats_html_erb___424040236665\
8002303_70149209376700'
  actionpack (3.2.19) lib/action_view/template.rb:145:in `block in render'
  activesupport (3.2.19) lib/active_support/notifications.rb:125:in `instrument'
  actionpack (3.2.19) lib/action_view/template.rb:143:in `render'
  actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
  actionpack (3.2.19) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
  activesupport (3.2.19) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.19) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.19) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
  actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
  actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
  actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
  actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:18:in `render'
  actionpack (3.2.19) lib/action_view/renderer/renderer.rb:36:in `render_template'
  actionpack (3.2.19) lib/action_view/renderer/renderer.rb:17:in `render'
  actionpack (3.2.19) lib/abstract_controller/rendering.rb:110:in `_render_template'
  actionpack (3.2.19) lib/action_controller/metal/streaming.rb:225:in `_render_template'
  actionpack (3.2.19) lib/abstract_controller/rendering.rb:103:in `render_to_body'
  actionpack (3.2.19) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
  actionpack (3.2.19) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
  actionpack (3.2.19) lib/abstract_controller/rendering.rb:88:in `render'
  actionpack (3.2.19) lib/action_controller/metal/rendering.rb:16:in `render'
  actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
  activesupport (3.2.19) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
  /srv/rvm_usr/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
  activesupport (3.2.19) lib/active_support/core_ext/benchmark.rb:5:in `ms'
  actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
  actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
  activerecord (3.2.19) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
  actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:39:in `render'
  actionpack (3.2.19) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
  actionpack (3.2.19) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
  actionpack (3.2.19) lib/abstract_controller/base.rb:167:in `process_action'
  actionpack (3.2.19) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (3.2.19) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  activesupport (3.2.19) lib/active_support/callbacks.rb:491:in `_run__1363657011610576064__process_action__76019701996837734__callbacks'
  activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback'

Is it possible that redmine_git_hosting (string occurs in production.log above) has an influence here?
Thanks.

@nicesw123 nicesw123 changed the title Error when checking statistics of subversion (svn) repository Error when checking STATISTICS of subversion (SVN) repository Aug 6, 2014
@n-rodriguez n-rodriguez added bugfix and removed bugfix labels Aug 20, 2014
@n-rodriguez n-rodriguez self-assigned this Aug 20, 2014
@n-rodriguez n-rodriguez added this to the v0.8 milestone Aug 20, 2014
@n-rodriguez
Copy link
Contributor

Hi! Thanks for your feedback!

Is it possible that redmine_git_hosting (string occurs in production.log above) has an influence here?

Yes. Actually I override the statistics view for any kind of repo. I have to take a look.

n-rodriguez pushed a commit that referenced this issue Sep 11, 2014
n-rodriguez pushed a commit that referenced this issue Sep 11, 2014
@n-rodriguez n-rodriguez modified the milestones: v0.7.8, v0.8 Sep 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants