request.getRequestURI() and request.getServerName() does not work as expected through Remote Satellite Server (Doc ID 1502896.1)

Last updated on JANUARY 04, 2016

Applies to:

Oracle WebCenter Sites - Version 7.6.2 and later
Information in this document applies to any platform.

Symptoms

 request.getRequestURI()  and request.getServerName() work fine on co-resident Satellite Server, but not on Remote Satellite Server.

 request.getRequestURI()  and request.getServerName() return the URI and hostname, respectively, of the co-resident Satellite Server, but when called from a Remote Satellite Server, they still return the URI and hostname of the Sites (formerly called FatWire ContentServer) cluster member, instead of the URI and hostname of the Remote Satellite Server.

e.g.
On Co-Resident Satellite Server: http://co-resident:8080/cs/Satellite?pagename=TestRequest:

- request.getRequestURI() returns /cs/Satellite
- request.getServerName() returns: co-resident

On Remote Satellite Server: http://remote-ss:8080/ss/Satellite?pagename=TestRequest:

- request.getRequestURI() returns /cs/Satellite
- request.getServerName() returns: co-resident

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms