プロジェクト

全般

プロフィール

Vote #73402

完了

Link to topic in nonexistent forum causes error 500

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

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

0%

予定工数:
category_id:
5
version_id:
69
issue_org_id:
13232
author_id:
56864
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
68
ステータス-->[Closed]

説明

Hi,

I just discovered that GETting an URL which points to a topic of a forum that does not exist causes an error 500. I could reproduce it by the following steps:

Create a new project with forums enabled (optional)

Create a new forum

Create a new topic, remember the GET url

Delete the forum

GET the remembered url

The stack trace says:

ERROR MESSAGE:

NoMethodError: undefined method `messages' for nil:NilClass

WHERE:

messages#show

[PROJECT_ROOT]/app/controllers/messages_controller.rb:127

URL:

https://domain.com/redmine/boards/2/topics/55

BACKTRACE:

[PROJECT_ROOT]/app/controllers/messages_controller.rb:127
[GEM_ROOT]/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:462
[GEM_ROOT]/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405
[GEM_ROOT]/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405
[GEM_ROOT]/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385

I'm running Redmine 2.2.3.stable.


journals

Fixed in r11446, thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

  • カテゴリForums_5 にセット
  • 対象バージョン2.2.4_69 にセット

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

いいね!0
いいね!0