Defect #12189

Missing tmp/pdf directory

Added by Anton Chevychalov about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:2.1.3
Resolution:Fixed Affected version:1.4.4

Description

There is no tmp/pdf directory in default bungle. And it cause the following error during pdf export:

Started GET "/issues/2214.pdf" for 217.73.199.113 at Tue Oct 23 13:11:54 +0400 2012
Processing by IssuesController#show as PDF
  Parameters: {"id"=>"2214"}
  Current user: ac (id=171)
Completed 500 Internal Server Error in 186ms

Errno::EACCES (Permission denied - /opt/redmine-2.1.2/tmp/pdf):
  lib/redmine/export/pdf.rb:39:in `initialize'
  lib/redmine/export/pdf.rb:499:in `new'
  lib/redmine/export/pdf.rb:499:in `issue_to_pdf'
  app/controllers/issues_controller.rb:121:in `show'
  app/controllers/issues_controller.rb:114:in `show'

Solution is just a creation of <redmine_home>/tmp/pdf

Associated revisions

Revision 10702
Added by Toshi MARUYAMA about 5 years ago

add tmp/pdf directory (#12189)

Revision 10703
Added by Toshi MARUYAMA about 5 years ago

Merged r10702 from trunk to 2.1-stable (#12189)

add tmp/pdf directory.

Revision 10704
Added by Toshi MARUYAMA about 5 years ago

Merged r10702 from trunk to 1.4-stable (#12189)

add tmp/pdf directory.

History

#1 Updated by Toshi MARUYAMA about 5 years ago

  • Subject changed from No tmp/pdf directory in bungle to No tmp/pdf directory
  • Target version set to 2.1.3
  • Affected version (unused) changed from 2.1.2 to 1.4.4
  • Affected version changed from 2.1.2 to 1.4.4

#2 Updated by Toshi MARUYAMA about 5 years ago

  • Category set to PDF export
  • Status changed from New to Closed
  • Resolution set to Fixed

I have added tmp/pdf to Subversion r10702, r10703 and r10704.

Redmine will make tmp/pdf directory if it does not exist.
source:tags/2.1.2/lib/redmine/export/pdf.rb#L38

#3 Updated by Jean-Philippe Lang about 5 years ago

  • Subject changed from No tmp/pdf directory to Missing tmp/pdf directory

Also available in: Atom PDF