Project

General

Profile

Actions

Defect #16255

closed

Internal Error for specific version of non-existent wiki page

Added by Björn Peemöller about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Low
Category:
Wiki
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.

Actions

Also available in: Atom PDF