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)
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.