prawnpdf/prawn — Issue #327: Prawn kill rails with selected cyrillic 'killer strings'
Author: pandar1
Created: 2012-03-09 14:02:55+00:00
State: open

Hi,

I use rails 2.3.8 and prawn latest 0.12.0 (but the same happened with 0.11.1.pre)

In our application we have a reporting system which can execute custom sql queries against the db and return results in
pdf via prawn or csv via fasterCSV

We found that with specific header labels in cyrillic prawn literally kills the server (the dos box from which is launched close itself); if the output is csv no problem, so this must be prawn related

strings are as follows: (I was not able to isolate which one, problems seems to appear with some combinations of them, and not all the time, but if you launch the report 10 times you surely kill the server)

Наименование оборудования, с указанием идентификационного номера оборудования (ID)
Причина установки/замены запасных, расходных и быстроизнашивающихся частей
Наименование
Коли - чество
Цена (без учета НДС), ЕВРО
Сумма (без учета НДС), ЕВРО
НДС 18%, ЕВРО
Сумма (с учетом НДС), ЕВРО
Дата установки/ замены

I tried to sanitize each header cell in rails with toutf8 with no results; we were able to sanitize the report by pasting this strings into excel and applying functions clean and upper to them, then the report no longer make rails crash

I use verdana for the output cause it support cyrillic

Fabio