Project

General

Profile

Downloading "Wiki.html" when I click 'wiki' menu

Added by Jong Wook Kim over 11 years ago

Hi, I just migrated a redmine 2.0.3.stable website from a server using ruby 1.8 / rails 3.2.6 to another server with ruby 1.8 / rails 3.2.6

After changing mysql driver to mysql2 everything works fine except I get a "download Wiki.html" behavior rather than the wiki page itself.

The downloaded Wiki.html has the content of the main Wiki page in a simple HTML format.

Below are part of the HTTP response when I click on the 'wiki' menu. As you see 'Content-Disposition' header is causing browsers to download the page as a file

Did anyone had this issue or know how to fix it? Any help will be appreciated.


HTTP/1.1 200 OK
Date: Sun, 23 Sep 2012 15:39:10 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
Content-Disposition: attachment; filename="Wiki.html"
Content-Transfer-Encoding: binary
Cache-Control: private
X-UA-Compatible: IE=Edge,chrome=1
Status: 200
Connection: close
Content-Type: text/html; charset=UTF-8


Update: below are the log when I click on 'wiki' menu, somehow redmine is rendering 'export' view.


Started GET "/redmine/projects/ksain/wiki.html" for 125.176.73.11 at 2012-09-24 00:31:59 +0900
Processing by WikiController#show as HTML
Parameters: {"project_id"=>"ksain"}
Rendered wiki/export.html.erb (81.7ms)
Rendered text template (0.0ms)
Sent data Wiki.html (0.6ms)
Completed 200 OK in 90ms (Views: 0.4ms | ActiveRecord: 4.2ms)