https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292017-04-26T14:50:57ZRedmineRedmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=782212017-04-26T14:50:57ZToshi MARUYAMA
<ul><li><strong>Category</strong> changed from <i>Wiki</i> to <i>PDF export</i></li></ul> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=787872017-05-26T10:31:44ZToshi MARUYAMA
<ul><li><strong>File</strong> <a href="/attachments/18404">1.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/18404/1.png">1.png</a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>I cannot reproduce.</p>
<p><img src="https://www.redmine.org/attachments/download/18404/1.png" alt="" /></p>
<pre>
Environment:
Redmine version 3.3.3.stable
Ruby version 1.9.3-p551 (2014-11-13) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter SQLite
SCM:
Subversion 1.7.14
Mercurial 2.8.2
Cvs 1.12.13
Git 1.8.3.1
Filesystem
Redmine plugins:
no plugin installed
</pre> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=793222017-06-19T17:17:44ZLeon Blakey
<ul></ul><p>Thanks for looking at this. This happens with textile, maybe your wiki syntax is still set to markdown?</p>
<p>I reproduced again on 3.3.3 (latest docker image) with that wiki page name and text.</p> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=795652017-06-29T05:54:47ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Confirmed</i></li><li><strong>Affected version</strong> changed from <i>3.3.2</i> to <i>3.3.3</i></li></ul><pre>
Started GET "/test-3.3-stable/projects/hg-main/wiki/Test.pdf" for 127.0.0.1 at 2017-06-29 14:53:31 +0900
Processing by WikiController#show as PDF
Parameters: {"project_id"=>"hg-main", "id"=>"Test"}
Current user: admin (id=1)
Rendered wiki/show.pdf.erb (375.6ms)
Completed 500 Internal Server Error in 583ms (ActiveRecord: 201.3ms)
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___3121506352715590158_69887059880660'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=810112017-09-10T10:18:41ZJun NAITOH
<ul></ul><p>This problem fixed by rbpdf 1.19.3.<br />please bundle update.</p> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=810572017-09-13T07:17:16ZGo MAEDA
<ul></ul><p>Jun NAITOH wrote:</p>
<blockquote>
<p>This problem fixed by rbpdf 1.19.3.<br />please bundle update.</p>
</blockquote>
<p>The latest rbpdf fixed the same problem on our customer's instance. Thank you for updating the gem.</p> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=810582017-09-13T07:24:03ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>3.3.5</i></li></ul><p>I think it would be better to update Gemfile to ensure that the fixed version of rbpdf will be installed.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: Gemfile
===================================================================
</span><span class="gd">--- Gemfile (revision 16952)
</span><span class="gi">+++ Gemfile (working copy)
</span><span class="p">@@ -21,7 +21,7 @@</span>
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
<span class="gd">-gem "rbpdf", "~> 1.19.2"
</span><span class="gi">+gem "rbpdf", "~> 1.19.3"
</span>
# Optional gem for LDAP authentication
group :ldap do
</code></pre> Redmine - Defect #25702: Exporting wiki page with specific table to PDF causes 500https://www.redmine.org/issues/25702?journal_id=815342017-10-13T10:17:31ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Gemfile is updated in 3.3-stable, 3.4-stable, and trunk, thanks.</p>