TitleInstall.jsp does not handle Windows paths well
Date26-May-2005 19:57:41 EEST
Bug criticalityMediumBug
Browser versionFirefox
Bug statusClosedBug
PageProvider used
Servlet ContainerTomcat
Operating SystemWindows
Java version1.5
  1. Drop JSPWiki.war into Tomcat webapps folder
  2. Point browser to .../JSPWiki/Install.jsp
  3. In Work Directory or File Storage input fields, enter a Windows path like this: c:\work\dir

The Install.jsp script writes the values entered by the user verbatim to jspwiki.properties. This causes a crash when the user restarts the application, because single backslashes are treated as escape characters by the property file handler.

Quick workaround: Modify Install.jsp to instruct the user to use double backslashes in file paths on Windows.

Other options:

  • Modify Install.jsp to replace \ with / characters. This approach seems to work mostly, except that the file attachment system breaks if the work directory has / slashes on Windows.

On a related note, I recommend updating the message "Your new properties have been saved. You can see what was written if you scroll down a bit." to read "Your new properties have been saved. Please restart the application for them to take effect. You can see what was written if you scroll down a bit."

Oops. You're right. I don't actually own a Windows box for testing, so I have to rely on people to submit error reports and patches for this kind of stuff...

-- JanneJalkanen

Should be fixed in 2.2.18.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 06-Jun-2005 00:46 by Administrator