Project

General

Profile

Actions

Defect #4725

open

Error displaying Project's Settings when repository configured

Added by the abstrak about 14 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2010-02-03
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

After the migration from 0.8.7 to 0.9.1, Redmine display a 500 Internal Error when I click "Settings" on a project that have a repository (subversion).

Before 0.9.1 (with 0.8.7):
  • The repository was configured with redmine 0.8.7 and work correctly.
  • Viewing repository work.
  • Settings can be displayed correctly.
After 0.9.1:
  • Viewing repository work!
  • Settings cannot be displayed at all on a project with a repository configured!
  • Settings can be displayed correctly on a project without repository.

Log file :

ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host]) on line #10 of app/views/projects/settings/_repository.rhtml:
7:
8: <div class="box tabular">
9: <p><label><%= l(:label_scm) %></label><%= scm_select_tag(@repository) %></p>
10: <%= repository_field_tags(f, @repository) if @repository %>
11: </div>
12:
13: <div class="contextual">

    (eval):20:in `root_url'
    app/helpers/repositories_helper.rb:149:in `subversion_field_tags'
    app/helpers/repositories_helper.rb:124:in `send'
    app/helpers/repositories_helper.rb:124:in `repository_field_tags'
    app/views/projects/settings/_repository.rhtml:10:in `_run_rhtml_app47views47projects47settings47_repository46rhtml_locals_object_repository_tab'
    app/views/projects/settings/_repository.rhtml:1:in `_run_rhtml_app47views47projects47settings47_repository46rhtml_locals_object_repository_tab'
    app/views/common/_tabs.rhtml:24:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
    app/views/common/_tabs.rhtml:23:in `each'
    app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
    app/helpers/application_helper.rb:182:in `render_tabs'
    app/views/projects/settings.rhtml:3:in `_run_rhtml_app47views47projects47settings46rhtml'
    passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /usr/local/www/redmine/public/500.html (500 Internal Server Error)

Please try to fix...

How can I help you ?


Files

repository_patch.diff (562 Bytes) repository_patch.diff Patch for the Repository model Marko Roeder, 2011-01-18 17:03

Related issues

Related to Redmine - Defect #6713: Git: Not able to Resetting Redmine project respositoryNewToshi MARUYAMA2010-10-20

Actions
Related to Redmine - Defect #8458: Subversion: Delete invalid repository fails using the libsvn pluginClosedToshi MARUYAMA2011-05-29

Actions
Related to Redmine - Feature #1406: Browse through Git branchesClosedEric Davis2008-06-09

Actions
Actions

Also available in: Atom PDF