Actions
Defect #25702
closedExporting wiki page with specific table to PDF causes 500
Defect #25702:
Exporting wiki page with specific table to PDF causes 500
Resolution:
Fixed
Affected version:
Description
I am getting this exception when saving the attached wiki page to PDF.
Started GET "/projects/sandbox/wiki/User3.pdf" for 74.143.73.222 at 2017-04-26 12:00:05 +0000
Processing by WikiController#show as PDF
Parameters: {"project_id"=>"sandbox", "id"=>"User3"}
Current user: LBlakey (id=25)
Rendered wiki/show.pdf.erb (2394.5ms)
Completed 500 Internal Server Error in 2447ms (ActiveRecord: 42.0ms)
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
1: <%= raw wiki_page_to_pdf(@page, @project) %>
lib/redmine/export/pdf.rb:95:in `RDMwriteFormattedCell'
lib/redmine/export/pdf/wiki_pdf_helper.rb:79:in `write_wiki_page'
lib/redmine/export/pdf/wiki_pdf_helper.rb:55:in `wiki_page_to_pdf'
app/views/wiki/show.pdf.erb:1:in `_app_views_wiki_show_pdf_erb___2725341082725750565_42106300'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Steps to reproduce
- Create a wiki page called User3
- Paste in the contents of the attached wiki_crash.txt file. Save
- Click the PDF link at the bottom of the page. Get 500 error and the above exception in the logs
- Edit the page and remove the last word "r" at the end of the table. Save
- Click the PDF link again. Page saves successfully
System Information
Uses the docker redmine:latest image
Files
Actions
