Project

General

Profile

Actions

Defect #28337

closed

Problem when creating PDF with too many columns

Added by Vincent Robert over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Third-party libraries
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

The application does not respond if we try to export issues to PDF with too many columns (more than 60).

How to reproduce this bug:
1. Create many issue custom fields
You can use this command in the console: (1..60).each { |i| CustomField.new(IssueCustomField.last.attributes.merge!({id:nil,name:"test-#{i}", is_for_all: true})).save }
2. Go to /issues page
3. Choose to display every columns and apply the filter
4. Try to export to PDF

This bug seems to come from the RBPDF Gem. An infinite loop may appear in the "Write" method here:
https://github.com/naitoh/rbpdf/blob/0eff3fdae5a17ec111b63e3825b358a6b34c3f56/lib/rbpdf.rb#L4510
This infinite loop could overload the server and affect website availability.


Related issues

Is duplicate of Redmine - Defect #23962: Redmine Out of Memory Exception when exporting issues with lots of columns (> 50) to PDFNew

Actions
Actions

Also available in: Atom PDF