Modify ↓
Opened 11 years ago
Closed 8 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)
Note: See
TracTickets for help on using
tickets.



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