Project

General

Profile

Actions

Defect #28337

closed

Problem when creating PDF with too many columns

Added by Vincent Robert almost 7 years ago. Updated almost 7 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 #1

Updated by Stephane Evr almost 7 years ago

This is related to #23962

Actions #2

Updated by Vincent Robert almost 7 years ago

Stephane Evr wrote:

This is related to #23962

Yes, that's the same issue. And I have applied your temporary patch on my Redmine applications. Thank you.

Actions #3

Updated by Marius BĂLTEANU almost 7 years ago

  • Is duplicate of Defect #23962: Redmine Out of Memory Exception when exporting issues with lots of columns (> 50) to PDF added
Actions #4

Updated by Marius BĂLTEANU almost 7 years ago

  • Status changed from New to Closed
  • Priority changed from High to Normal
  • Resolution set to Duplicate

Vincent Robert wrote:

Stephane Evr wrote:

This is related to #23962

Yes, that's the same issue. And I have applied your temporary patch on my Redmine applications. Thank you.

Thanks for reporting the duplication. I'm closing this one.

Actions

Also available in: Atom PDF