Modify

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

Description

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

[[Image(example.svg)]]
[[ImageSvg(example.svg)]]
[[ImageSvg(missing.svg)]]

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("https://user:password@trac.example.com/trac/login/xmlrpc") 

page = server.wiki.getPageHTML('ImageSvg/Example')
print page

The return I get is:

<html><body><p>
<a style="padding:0; border:none" href="https://trac.example.com/trac/attachment/wiki/ImageSvg/Example/example.svg"><img src="https://trac.example.com/trac/raw-attachment/wiki/ImageSvg/Example/example.svg" /></a>
example.svg not found
missing.svg not found
</p>
</body></html>

while I am expecting:

<html><body><p>
<a style="padding:0; border:none" href="https://trac.example.comr/trac/attachment/wiki/ImageSvg/Example/example.svg"><img src="https://trac.example.com/trac/raw-attachment/wiki/ImageSvg/Example/example.svg" /></a>
</p>
            <div>
            <embed  type="image/svg+xml" 
                style="margin: 0pt; padding: 0pt;"
                src="/svg/attachments/wiki/ImageSvg/Example/example.svg"  
                width="304pt" height="290pt"
                pluginspage="http://www.adobe.com/svg/viewer/install/"> 
            </embed>
            </div>
            <p>
missing.svg not found
</p>
</body></html>

The attached web_ui.py seems to behave better.

Attachments (2)

web_ui.py (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: web_ui.py 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
Action
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.