Opened 7 years ago

Closed 3 years ago

#11755 closed defect (wontfix)

Macro fails with 'not found' error using xmlrpc

Reported by: aauzi Owned by: Richard Liao
Priority: normal Component: TracImageSvgMacro
Severity: major Keywords: xmlrpc, macro
Cc: Trac Release: 1.0


with svn r13932, I get an unexpect 'example.svg' not found error with the following test case:


Only the file example.svg is attached to the page.

I retreive the html of the page with xmlrpc using the following script:

import xmlrpclib 
server = xmlrpclib.ServerProxy("") 

page ='ImageSvg/Example')
print page

The return I get is:

<a style="padding:0; border:none" href=""><img src="" /></a>
example.svg not found
missing.svg not found

while I am expecting:

<a style="padding:0; border:none" href="https://trac.example.comr/trac/attachment/wiki/ImageSvg/Example/example.svg"><img src="" /></a>
            <embed  type="image/svg+xml" 
                style="margin: 0pt; padding: 0pt;"
                width="304pt" height="290pt"
missing.svg not found

The attached seems to behave better.

Attachments (2) (6.5 KB) - added by aauzi 7 years ago.
t11755.diff (2.0 KB) - added by Ryan J Ollos 7 years ago.
Patch against 1.0 branch.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by aauzi

Attachment: added

comment:1 Changed 7 years ago by Ryan J Ollos

In the future, I kindly ask that you refer to the patch submission guidelines: trac:TracDev/SubmittingPatches.

Changed 7 years ago by Ryan J Ollos

Attachment: t11755.diff added

Patch against 1.0 branch.

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Plugin is deprecated.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Richard Liao.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.