Package: redmine
Version: 3.0~20140825-5
Severity: normal
Tags: patch jessie
X-Debbugs-CC: [email protected]
We've just noticed "Redmine 500 errors" whenever someone tries to access a
page which should be redirected to a different page. This happens always with
the Debian Jessie version of Redmine.
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine
administrator for assistance.
If you are the Redmine administrator, check your log files for details
about the error.
I have now modified the find_existing_or_new_page to use
project_wiki_page_path for the redirect. This was enough to fix it here when
logged in or logged out. You can find the modification in the attached patch.
--- System information. ---
Architecture: amd64
Kernel: Linux 4.2.0-1-amd64
Debian Release: stretch/sid
500 unstable httpredir.debian.org diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index d6670e9..2515194 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -327,7 +327,7 @@ private
def find_existing_or_new_page
@page = @wiki.find_or_new_page(params[:id])
if @wiki.page_found_with_redirect?
- redirect_to params.update(:id => @page.title)
+ redirect_to project_wiki_page_path(@project, @page.title)
end
end