ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

[PATCH] Fix for an internal server error on formatting an issue as a PDF in Japanese (Bug #265)


Added by Yuki Sonoda at 2011-03-06 12:29 pm.


Status:Open Start date:2011-03-06
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Issue tracking
Target version:-
Remote issue URL:http://www.redmine.org/issues/7794 Affected version:

Description

IssuesController#show fails with internal server error when

  • params[:format] is pdf
  • AcceptLanguage: ja
  • @issue.description contains an ASCII control character.

This is because the map SJIS_widths does not have a mapping for control characters and it leads concatenation of a String and nil at vendor/plugins/rfpdf/lib/rfpdf/japanese.rb:182.

The attached patch fixes this problem.


ja-pdf.patch (1.7 kB) Yuki Sonoda, 2011-03-06 12:29 pm


History

Also available in: Atom PDF