Edgewall Software

Ticket #3711 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

Error: Macro Image(cruntimerror.JPG) failed

Reported by: sungje@… Owned by: cboos
Priority: normal Milestone: 0.11
Component: wiki system Version: 0.10b1
Severity: normal Keywords: macros formatting context
Cc:

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

Change History

  Changed 2 years ago by cboos

  • keywords macros formatting added
  • owner changed from daniel to cboos
  • component changed from report system to wiki
  • milestone changed from 0.10 to 0.11

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.

follow-up: ↓ 3   Changed 22 months ago by sid

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

in reply to: ↑ 2   Changed 22 months ago by cboos

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.

  Changed 22 months ago by cboos

  • status changed from new to assigned

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

  Changed 21 months ago by cboos

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r4451.

  Changed 21 months ago by cboos

  • keywords context added

Add/Change #3711 (Error: Macro Image(cruntimerror.JPG) failed)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.