| Title | Install.jsp does not handle Windows paths well |
| Date | 26-May-2005 19:57:41 EEST |
| Version | 2.2.16 |
| Submitter | StephenSchaub |
| Bug criticality | MediumBug |
| Browser version | Firefox |
| Bug status | ClosedBug |
| PageProvider used | |
| Servlet Container | Tomcat |
| Operating System | Windows |
| URL | Install.jsp |
| Java version | 1.5 |
- Drop JSPWiki.war into Tomcat webapps folder
- Point browser to .../JSPWiki/Install.jsp
- 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...
Should be fixed in 2.2.18.