Project

General

Profile

Actions

Defect #23700

closed

Creating a wiki page named "Sidebar" without proper permission raises an exception

Added by Go MAEDA about 8 years ago. Updated about 8 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Steps to reproduce:

1. Login with an account which does not have "Protect wiki pages" on some project.
2. Go to the project.
3. Click "+" button and then click "New wiki page".
4. Enter "Sidebar" in the title field and click "Next".
5. Redmine raises an exception.

Completed 500 Internal Server Error in 48ms (Views: 13.8ms | ActiveRecord: 13.6ms)

ActionController::UrlGenerationError (No route matches {:action=>"show", :controller=>"wiki", :id=>"Sidebar", :project_id=>nil} missing required keys: [:project_id]):
  app/controllers/wiki_controller.rb:71:in `new'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Actions

Also available in: Atom PDF