Description
The DocBook formatter manages to duplicate the script name in the image URLs it generates.
Steps to reproduce
- The wiki must be using a non-null script name: it is not deployed at the "site root".
- Find a page with an image attachment displayed in the page content.
- Choose "Render as Docbook" in the actions menu.
Inspect the resulting XML, looking for the imagedata tag and the fileref attribute's contents.
Example
URL: http://mercurial.selenic.com/wiki/CvsLikePractice
<imagedata fileref="http://mercurial.selenic.com/wiki//wiki/CvsLikePractice?action=AttachFile&do=get&target=autogenerated-11fb40c9f1337236481f7046d26a97d7283b3704.png"/>
Note how the http://mercurial.selenic.com/wiki/ part (defined by the url_root property of the request) is combined with the attachment URL. It appears that the host details are sufficient, minus the script name, for combination with the attachment URL.
Component selection
MoinMoin.formatter.text_docbook (see patch)
Details
MoinMoin Version |
1.9 |
OS and Version |
Any |
Python Version |
Any |
Server Setup |
Any |
Server Details |
Moin deployed at a location other than the site root |
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Use this patch to hopefully fix the script name duplication.
Discussion
Plan
- Priority:
- Assigned to:
- Status: patch applied to main repo, will be in 1.9.8