Title | preview, upload and logout all redirect to bad pages |
Date | 05-Jan-2007 02:29:52 EET |
Version | 2.4.87 |
Submitter | 63.205.61.22 |
Bug criticality | LightBug |
Browser version | Mozilla 1.5 |
Bug status | NewBug |
PageProvider used | |
Servlet Container | tomcat |
Operating System | Linux |
URL | .../Logout.jsp or .../Edit.jsp |
Java version | 5.0 |
When editing a page, pressing preview brings up a 404 error page. The address it is trying to get to is something along the lines of:
http://<addr>/EricsWikiPreview.jsp?page=Main
The wiki baseURL is specified as http://<addr>/EricsWiki/ and pathnames are specified as "absolute". Same happens when set to "relative".
When I change the baseURL to http://<addr>/EricsWiki// the problem disappears. Interestingly, the address of the main page in the address bar is http://<addr>/EricsWiki//Wiki.jsp?page=Main
When editing it is http://<addr>/EricsWiki//Edit.jsp?page=Main
. When previewing, however, it is http://<addr>/EricsWiki/Preview.jsp?page=Main
-- notice the missing slash between EricsWiki and Preview.jsp.
A similar problem occurs when uploading attachments.
In a related problem, when logging out, I am redirected to http://<addr>/EricsWiki. note the dot in the address -- even with multiple trailing slashes in the baseURL. I had to change Logout.jsp to remove the "." from the redirect address.
-EricHorne (eric.horne@teradyne.com)
We have this problem as well although it seems as though on just a subset of the pages, in particular the Login and Preview actions. Unfortunately the problem only shows up on our production wiki and didn't materialize on our test deployments. We have temporarily solved the problem by adding the extra slash to the end of the baseURL property in jspwiki.properties although now our URLs all contain the extra slashes.
--KennethSuter, 27-Apr-2007
Which URLProvider are you using?
--JanneJalkanen, 28-Apr-2007
Do you mean URLConstructor? Right now we are using ShortViewURLConstructor.
--KennethSuter, 02-May-2007
Yup, URLConstructor. D'oh...
Anyway, what does your "jspwiki.shortURLConstructor.prefix" -setting look like? That could be the culprit.
--JanneJalkanen, 02-May-2007
jspwiki.properties:jspwiki.shortURLConstructor.prefix = page/
--KennethSuter, 07-May-2007