Opened 6 years ago

Closed 6 years ago

#10009 closed defect (invalid)

File not found in ticket, although the attachment exists

Reported by: eu@… Owned by: ursaw
Priority: normal Component: PdfImagePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


I have a ticket #123 with an attachment called foo.pdf. Writing a ticket comment with:

  • [[PdfImg(foo.pdf)]] and ticket:123:foo.pdf results in error box

Error: Macro PdfImg(foo.pdf) failed

2No such file or directory

  • attachment:foo.pdf gives

Attachment 'wiki:attachment?: foo.pdf' does not exist.

  • ticket:123:attachment:foo.pdf:

No filespec given

What's wrong? (convert is installed on the server.)

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by ursaw

Parsing of the attachment is copyied from the Image Macro , therefore your syntax looks OK.

can you please have a look at the

Which OS and tarc version are you using.

I just tried to display an PDF attachment to an ticket to display in a wiki page and vice verse. both worked fine for me.

Just a small guess in case you are using windows: Does your path on the filesystem contains a blank?

comment:2 Changed 6 years ago by eu@…

Resolution: invalid
Status: newclosed

Thanks for the pointer to the log :-)

OSError: [Errno 2] No such file or directory: '/home/me/path/trac-env/htdocs/pfdimg-images'

there was a further problem in the installation dirs, all is OK now.

(Running Debian/stable, trac 0.12.2)


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain ursaw.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.