You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joel Trunick <jo...@webifysolutions.com> on 2004/11/18 18:07:31 UTC

EngineServiceLink.getAbsoluteURL() - Bug?


The EngineServiceLink class' implementation of getAbsoluteURL, returns
an URL with a port based on the servlet deployment, rather than the
requested HTTP header information (line 148).

In our case, we are redirecting from port :80 to :8080, and when we call
the restart service, Tapestry cannot redirect to the home page because
it is looking for it on :8080 rather than the requested :80 port.

This would seem to be a bug. No?

Joel



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: EngineServiceLink.getAbsoluteURL() - Bug?

Posted by Paul Ferraro <pm...@columbia.edu>.
The url returned by EngineServiceLink.getAbsoluteURL() uses 
ServletRequest.getServerPort() to determine the port.  Check out 
getServerPort() method spec here:

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getServerPort()

I think the problem lies in the method you are using to redirect from 
port 80 -> 8080.  Can you explain how you are doing this?

Paul

Joel Trunick wrote:

>The EngineServiceLink class' implementation of getAbsoluteURL, returns
>an URL with a port based on the servlet deployment, rather than the
>requested HTTP header information (line 148).
>
>In our case, we are redirecting from port :80 to :8080, and when we call
>the restart service, Tapestry cannot redirect to the home page because
>it is looking for it on :8080 rather than the requested :80 port.
>
>This would seem to be a bug. No?
>
>Joel
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org