Project

General

Profile

Actions

Defect #1498

closed

Repository Browsing in 0.7.2 Doesn't Work (Debian 5, Ruby 1.8)

Added by Chris Miller over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
2008-06-19
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Whenever I try to browse a Subversion repository, by either http:// or file:///, the page throws a 500 error, and the log file gives me this:

ActionView::TemplateError (undefined method `length' for #<Enumerable::Enumerator
:0xb7221714>) on line #22 of repositories/_dir_list_content.rhtml:
19: <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) i
f entry.lastrev && entry.lastrev.time %></td>
20: <td class="author"><%=h(entry.lastrev.author.to_s.split('<').first) if entry.
lastrev %></td>
21: <% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.
identifier) if entry.lastrev && entry.lastrev.identifier %>
22: <td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.n
il? %></td>
23: </tr>
24: <% end %>

    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/text_helper.r
b:50:in `truncate'
    app/views/repositories/_dir_list_content.rhtml:22:in `_run_erb_47app47views47
repositories47_dir_list_content46rhtml'
    app/views/repositories/_dir_list_content.rhtml:1:in `each'
    app/views/repositories/_dir_list_content.rhtml:1:in `_run_erb_47app47views47r
epositories47_dir_list_content46rhtml'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `send'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `compi
le_and_render_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in `rende
r_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in `rende
r_file'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:331:in `rende
r'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:120:in `r
ender_partial'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:352:in `rende
r'
    app/views/repositories/_dir_list.rhtml:13:in `_run_erb_47app47views47reposito
ries47_dir_list46rhtml'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `send'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `compile_and_render_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in `render_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in `render_file'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:331:in `render'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:120:in `render_partial'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:352:in `render'
    app/views/repositories/show.rhtml:9:in `_run_erb_47app47views47repositories47show46rhtml'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `send'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in `compile_and_render_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in `render_template'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in `render_file'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1100:in `render_for_file'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:836:in `render_with_no_layout'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/layout.rb:262:in `render_without_benchmark'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in `render'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1153:in `default_render'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1159:in `perform_action_without_filters'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
    /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
    /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
    /var/lib/gems/1.8/bin/mongrel_rails:19:in `load'
    /var/lib/gems/1.8/bin/mongrel_rails:19

Rendering /opt/redmine/public/500.html (500 Internal Server Error)

I'm no expert, but I don't think it's supposed to do that. The machine is running Debian 5. I tried both http:// and file:/// methods to access the repository. I'm certain that Redmine has sufficient credentials to read the repository.

Actions

Also available in: Atom PDF