incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Brissette (JIRA)" <>
Subject [jira] Created: (JSPWIKI-148) Preview fails when using a port other than 80
Date Tue, 22 Jan 2008 21:14:39 GMT
Preview fails when using a port other than 80

                 Key: JSPWIKI-148
             Project: JSPWiki
          Issue Type: Bug
    Affects Versions: 2.6.0
         Environment: Apache Tomcat 6, java 1.5, Jspwiki 2.6
            Reporter: Ryan Brissette

When running tomcat on a port other than 80, the port information is dropped when attempting
to preview a page. 

http://myserver:9080/testWiki/Edit.jps...  becomes http://myserver/testWiki/Preview.jsp...

My baseUrl is set correctly (including port number) and everything but preview appears to
work.  The issue is seen when attempting to preview from edit and when attempting to preview
from the comment page.  Copying the url and adding in the port number produces the results
as planned, although roughly half of the time the session gets marked as expired.  

This issue is seen whether I am using relative or absolute paths.

Line 227 from Edit.jsp is an example of where the incorrect redirect is happening.
response.sendRedirect(wiki.getURL(WikiContext.PREVIEW,pagereq,null,false) );
Regardless of whether absolute or relative paths are being used the wiki.getURL call here
returns /testWiki/Preview.jsp?=...
my work-around was:
response.sendRedirect("http://myserver:9080" + wiki.getURL(WikiContext.PREVIEW,pagereq,null,false)
which seems to work, except the session expirations mentioned above.

I have also done some playing around with my dns and tomcat so that the port number is removed
from url (baseURL was updated, tried with both absolute and relative paths, etc, etc) by the
same result was obtained.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message