You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Ryan Brissette (JIRA)" <ji...@apache.org> on 2008/01/22 22:14:39 UTC

[jira] Created: (JSPWIKI-148) Preview fails when using a port other than 80

Preview fails when using a port other than 80
---------------------------------------------

                 Key: JSPWIKI-148
                 URL: https://issues.apache.org/jira/browse/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. 

ie
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.


[jira] Resolved: (JSPWIKI-148) Preview fails when using a port other than 80

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Jalkanen resolved JSPWIKI-148.
------------------------------------

    Resolution: Cannot Reproduce

Closing as this needs more info.

> Preview fails when using a port other than 80
> ---------------------------------------------
>
>                 Key: JSPWIKI-148
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-148
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Servlet Container/Java compatibility
>    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. 
> ie
> 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.


[jira] Commented: (JSPWIKI-148) Preview fails when using a port other than 80

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585905#action_12585905 ] 

Janne Jalkanen commented on JSPWIKI-148:
----------------------------------------

Proposing INVALID, if no further info is given.

> Preview fails when using a port other than 80
> ---------------------------------------------
>
>                 Key: JSPWIKI-148
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-148
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Servlet Container/Java compatibility
>    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. 
> ie
> 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.


[jira] Commented: (JSPWIKI-148) Preview fails when using a port other than 80

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561834#action_12561834 ] 

Janne Jalkanen commented on JSPWIKI-148:
----------------------------------------

Works for me with an arbitrary port (tried several).  This is likely to be a configuration problem - if Tomcat cannot figure out what the correct port is (e.g. when running behind a proxy), it'll drop the port, as it will look at the incoming request to figure out what the proper port is.

Please describe your setup and configuration more accurately.

> Preview fails when using a port other than 80
> ---------------------------------------------
>
>                 Key: JSPWIKI-148
>                 URL: https://issues.apache.org/jira/browse/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. 
> ie
> 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.


Re: [jira] Commented: (JSPWIKI-148) Preview fails when using a port other than 80

Posted by Murray Altheim <mu...@altheim.com>.
Ryan,

I don't think this is a software bug, more likely a configuration
issue either with your JSPWiki or web container. I've been running
on basically a bunch of different ports for years, *none* of them
port 80.

Murray

Ryan Brissette (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/JSPWIKI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561782#action_12561782 ] 
> 
> Ryan Brissette commented on JSPWIKI-148:
> ----------------------------------------
> 
> This also happens when trying to create a new entry using WeblogEntryPlugin  the port number is dropped from the url.  Again it is corrected by adding the port number by hand.
> 
> I just discovered this so I haven't done a complete run through, but I'm assuming it is the same issue as above.  I will update the comments when I have more information.
> 
>> Preview fails when using a port other than 80
>> ---------------------------------------------
>>
>>                 Key: JSPWIKI-148
>>                 URL: https://issues.apache.org/jira/browse/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. 
>> ie
>> 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.

...........................................................................
Murray Altheim <murray07 at altheim.com>                           ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

       Boundless wind and moon - the eye within eyes,
       Inexhaustible heaven and earth - the light beyond light,
       The willow dark, the flower bright - ten thousand houses,
       Knock at any door - there's one who will respond.
                                       -- The Blue Cliff Record

[jira] Commented: (JSPWIKI-148) Preview fails when using a port other than 80

Posted by "Ryan Brissette (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561782#action_12561782 ] 

Ryan Brissette commented on JSPWIKI-148:
----------------------------------------

This also happens when trying to create a new entry using WeblogEntryPlugin  the port number is dropped from the url.  Again it is corrected by adding the port number by hand.

I just discovered this so I haven't done a complete run through, but I'm assuming it is the same issue as above.  I will update the comments when I have more information.

> Preview fails when using a port other than 80
> ---------------------------------------------
>
>                 Key: JSPWIKI-148
>                 URL: https://issues.apache.org/jira/browse/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. 
> ie
> 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.