プロジェクト

全般

プロフィール

Vote #75010

完了

Internal Error for specific version of non-existent wiki page

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
1
version_id:
82
issue_org_id:
16255
author_id:
56864
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
79
ステータス-->[Closed]

説明

Hi,

tonight the YandexBot visited our Redmine installation and queried for the first version of a non-existing wiki page (for whatever reaseon). The URL it requested looked like

https://redmine.server.de/projects/myproject/wiki/DoestNotExist?version=1

The same occurs for

https://redmine.server.de/projects/myproject/wiki/DoestNotExist/1

The exact error is

NoMethodError: undefined method `versions' for nil:NilClass
app/models/wiki_page.rb:107 content_for_version
app/controllers/wiki_controller.rb:69 show
...

Our environment is

Environment:
  Redmine version                2.4.4.stable
  Ruby version                   2.0.0-p353 (2013-11-22) [x86_64-linux]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.6.17
  Mercurial                      2.2.2
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  redmine_wiki_extensions        0.6.4

Although this is not a big issue, I would like Redmine to return a 404 error instead.


journals

Today I could reproduce this bug with Redmine 2.5.0.
--------------------------------------------------------------------------------
Fixed in r12971, thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン2.5.1_82 にセット

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

いいね!0
いいね!0