Project

General

Profile

Actions

Defect #7794

closed

Internal server error on formatting an issue as a PDF in Japanese

Added by Yuki Sonoda over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
PDF export
Target version:
Start date:
2011-03-06
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
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.


Files

ja-pdf.patch (1.67 KB) ja-pdf.patch Yuki Sonoda, 2011-03-06 13:23
test-1-org.pdf (5.48 KB) test-1-org.pdf Jun NAITOH, 2011-04-01 00:54
test-1-ja-pdf.patch.pdf (5.98 KB) test-1-ja-pdf.patch.pdf Jun NAITOH, 2011-04-01 00:54
test-1-ja-pdf_fix.patch.pdf (5.48 KB) test-1-ja-pdf_fix.patch.pdf Jun NAITOH, 2011-04-01 00:54
ja-pdf_fix.patch (627 Bytes) ja-pdf_fix.patch Jun NAITOH, 2011-04-01 00:54

Related issues

Related to Redmine - Defect #61: Broken character encoding in pdf exportClosedToshi MARUYAMA

Actions
Related to Redmine - Defect #6505: PDF export broken with Japanese (Gannt and Issue Tracking)Closed2010-09-27

Actions
Actions

Also available in: Atom PDF