Modify

Opened 2 years ago

Closed 2 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

Description

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 2 years ago by ursaw

Parsing of the attachment is copyied from the http://trac.edgewall.org/wiki/WikiMacros#Image-macro Image Macro , therefore your syntax looks OK.

can you please have a look at the log.info

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 2 years ago by eu@…

  • Resolution set to invalid
  • Status changed from new to closed

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)

Thanks!

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ursaw. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.