Description

The DocBook formatter manages to duplicate the script name in the image URLs it generates.

Steps to reproduce

  1. The wiki must be using a non-null script name: it is not deployed at the "site root".
  2. Find a page with an image attachment displayed in the page content.
  3. Choose "Render as Docbook" in the actions menu.
  4. 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&amp;do=get&amp;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

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


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9DocBookFormatterImageURLsDuplicateScriptName (last edited 2013-12-02 21:38:23 by ThomasWaldmann)