TitleShortURLConstructor does not work with relative InterWikiLinks
Date10-Feb-2006 10:41:44 EET
Version2.2.33, v2.3.72-cvs
SubmitterChristoph Sauer
Bug criticalityMediumBug
Browser versionFirefox 1.5
Bug statusClosedBug
PageProvider usedVersioningFileProvider
Servlet ContainerTomcat 5.0.22
Operating SystemWindows
Java version1.5.0_02-b09

Affects both ShortURLConstructor and ShortViewURLConstructor:

The InterWiki Link Edit:SomePage is defined as Edit.jsp?page=%s. If ShortURLConstructor is defined, it is rendered as

instead of

This also causes Contributed Plugins to fail which use relative links to servlets. For example the ImageXPlugin generates this relative link to a servlet:

<img src="imageServlet?page=test.png&width=250" width="250" />

With the ShortURLConstructor it points to this URL

instead of the correct mapping which is

Today I made some experiments with ShortURLConstructor and have seen similar behavior as well. Also I expierienced problems even with the Main page. In my case I had a contextPath other than "wiki". Switched back to default and will observe this Bug.

--Christian Buchegger, 06-May-2006

Plugins should use URL generation, using the WikiContext.getURL() mechanism, which will figure out the correct URL. The bug is thus in the plugins.

-- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-10) was last changed on 15-Aug-2007 17:39 by MurrayAltheim