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  

This page was created on 10-Feb-2006 10:41 by Christoph Sauer

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
Hello! Good Site! Thanks you! aegjnfshlpf
|Title|ShortURLConstructor does not work with relative InterWikiLinks
|Date|10-Feb-2006 10:41:44 EET
|Version|2.2.33, v2.3.72-cvs
|Submitter|[Christoph Sauer]
|[Bug criticality]|MediumBug
|Browser version|Firefox 1.5
|[Bug status]|ClosedBug
|[PageProvider] used|VersioningFileProvider
|Servlet Container|Tomcat 5.0.22
|Operating System|Windows
|URL|[Edit:LeftMenu]
|Java version|1.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
{{{
http://www.jspwiki.org/wiki/Edit.jsp?page=SomePage
}}}
instead of
{{{
http://www.jspwiki.org/Edit.jsp?page=SomePage
}}}
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
{{{
http://www.jspwiki.org/wiki/imageServlet?page=test.png&width=250
}}}
instead of the correct mapping which is
{{{
http://www.jspwiki.org/imageServlet?page=test.png&width=250
}}}
----
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
Version Date Modified Size Author Changes ... Change note
10 15-Aug-2007 17:39 1.687 kB MurrayAltheim to previous restored after incredibly intelligent vandalism
9 15-Aug-2007 16:27 0.043 kB 203.196.67.107 to previous | to last kopivipivo
8 13-Aug-2006 23:17 1.687 kB Janne Jalkanen to previous | to last
7 23-Jun-2006 09:21 1.504 kB Janne Jalkanen to previous | to last
6 23-Jun-2006 08:20 1.704 kB 66.194.133.71 to previous | to last
5 06-May-2006 23:03 1.504 kB Christian Buchegger to previous | to last
4 22-Feb-2006 14:39 1.197 kB Christoph Sauer to previous | to last
3 10-Feb-2006 10:53 1.195 kB Christoph Sauer to previous | to last
2 10-Feb-2006 10:52 1.196 kB Christoph Sauer to previous | to last
1 10-Feb-2006 10:41 1.183 kB Christoph Sauer to last
« This page (revision-10) was last changed on 15-Aug-2007 17:39 by MurrayAltheim