This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
Date28-Nov-2004 14:41:59 EET
VersionJSPWiki v2.1.123-cvs
Browser versionFirefox
PageProvider usedVersioningFileProvider
Servlet ContainerJBoss-3.2.6 + JBossweb-tomcat50
Operating SystemWindows XP Pro
Java versionj2sdk1.4.2_06

The WikiEngine.RSSThread class creates a file using a different algorithm than that which WikiEngine.getGlobalRSSURL() uses to subsequently return the filename.

I use

jspwiki.baseURL= jspwiki.rss.fileName = mydomain.rdf

and then

  • WikiEngine.RSSThread uses m_rootPath + getProperty("jspwiki.rss.fileName") to generate the file.
  • WikiEngine.getGlobalRSSURL() uses jspwiki.baseURL + getProperty("jspwiki.rss.fileName") to return URLs for the generated file.

So, if my web context is /FOO then the generated file will always be /FOO/mydomain.rdf and the link shall always point to The file is really at, but there isn't any way to fix this from the configuration unless you are willing to forgo either the prefix in the baseURL or RSS generation.

The implied assumption of JSPWiki is that jspwiki.baseURL points to your wiki files (i.e. Wiki.jsp). The implied assumption of getGlobalRSSURL() is that your RSS file is in the same directory as your Wiki.jsp file (i.e. baseURL).

I think that RSSThread should not use m_rootPath. Instead I think it should use m_servletContext.getRealPath((new URL(getBaseURL())).getPath()) + getProperty("jspwiki.rss.fileName") so that both the creation and links are relative to base URL.



Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 28-Nov-2004 14:41 by