Defect #23700

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

Added by Go MAEDA 7 months ago. Updated 7 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Wiki
Target version:3.3.1
Resolution:Fixed Affected version:3.3.0

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'

Associated revisions

Revision 15749
Added by Jean-Philippe Lang 7 months ago

Creating a wiki page named "Sidebar" without proper permission raises an exception (#23700).

Revision 15793
Added by Toshi MARUYAMA 7 months ago

3.3-stable: fix test failure (#23700)

History

#1 Updated by Toshi MARUYAMA 7 months ago

  • Target version set to 3.3.1

#2 Updated by Jean-Philippe Lang 7 months ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r15749.

#3 Updated by Jean-Philippe Lang 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF