Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#3711 closed defect (fixed)

Error: Macro Image(cruntimerror.JPG) failed

Reported by: sungje@… Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: wiki system Version: 0.10b1
Severity: normal Keywords: macros formatting context
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I attached a image file and used Macro Image(image.jpg0 when create a ticket. It's fine when i review a ticket. but I met the error when i reported the ticket as Show full description under each result.

Error: Macro Image(cruntimerror.JPG) failed Cannot reference local attachment from here

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 18 years ago

Component: report systemwiki
Keywords: macros formatting added
Milestone: 0.100.11
Owner: changed from daniel to Christian Boos

An example of why we need to know about the resource which can be used as the context, in the Formatter, see source:trunk/trac/wiki/macros.py@3728#L320.

This will be addressed in 0.11, as it requires to refactor the mimeview and wiki components.

comment:2 by sid, 17 years ago

Does this only happen if referenced in the ticket description? It works fine in comments. See #2647 for an example.

in reply to:  2 comment:3 by Christian Boos, 17 years ago

Replying to sid:

Does this only happen if referenced in the ticket description? It works fine in comments.

No, this issue is about having the link messed up in TracQuery, when Show full description option is checked.

There, the wiki_to_html transform has now way to specify what the "base" resource is and the workaround consisting of looking at the path_info can't work there.

comment:4 by Christian Boos, 17 years ago

Status: newassigned

I've started to work on that and related tickets (#3842, #3936, #3958, #4139, #4144).

comment:5 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r4451.

comment:6 by Christian Boos, 17 years ago

Keywords: context added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.