プロジェクト

全般

プロフィール

Vote #71766

完了

Cannot access Repositories page and Settings in a Project - Error 500

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
48
issue_org_id:
10827
author_id:
54004
assigned_to_id:
1
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
40
ステータス-->[Closed]

説明

I had 2 repositories in a project

  • 1 svn
  • 1 local

I added a new git as default and this happened.
Since then I'm unable to access Repositories and Settings page of the project

Processing ProjectsController#settings (for 10.253.6.23 at 2012-05-03 21:35:28) [GET]
  Parameters: {"controller"=>"projects", "action"=>"settings", "id"=>"my_project"}
Rendering template within layouts/base
Rendering projects/settings

ActionView::TemplateError (undefined method `<=>' for nil:NilClass) on line #13 of app/views/projects/settings/_repositories.html.erb:
10:     
11:   
12:   
13:   <% @project.repositories.sort.each do |repository| %>
14:     
15:       <%=h repository.scm_name %>
16:       <%=h repository.identifier %>

    app/models/repository.rb:144:in `<=>'
    app/views/projects/settings/_repositories.html.erb:13
    app/views/common/_tabs.html.erb:24
    app/views/common/_tabs.html.erb:23:in `each'
    app/views/common/_tabs.html.erb:23
    app/helpers/application_helper.rb:231:in `render_tabs'
    app/views/projects/settings.html.erb:3
    config/initializers/mongrel.rb:62:in `dispatch_cgi'

Rendering C:/Ruby/Apps/redmine/public/500.html (500 Internal Server Error)

journals

Fixed in r9619 and merged in r9620 into 1.4-stable. You can patch your app/models/repository.rb
Thanks for pointing this out.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン1.4.2_48 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0