Access Control In GlassFish 2.1.x Blocks All Access (Doc ID 2083658.1)

Last updated on MARCH 10, 2016

Applies to:

Oracle GlassFish Server - Version 2.1.1 to 2.1.1 [Release 2.1]
Information in this document applies to any platform.

Symptoms

 Attempting to restrict access via hostname blocks all access to GlassFish Server. For example, if the following is defined in the "testing" configuration for the virtual server called "test":

$ ./asadmin set testing.http-service.virtual-server.test.property.allowRemoteHost=test1.oracle.com
$ ./asadmin set testing.http-service.virtual-server.test.property.denyRemoteHost=test2.oracle.com

Updates domain.xml with:

<http-service>
       <virtual-server id="test" network-listeners="http-listener-1,http-listener-2">

          <property name="allowRemoteHost" value="test1.oracle.com"></property>

          <property name="denyRemoteHost" value="test2.oracle.com"></property>
       </virtual-server>
</http-service>

Both hosts will be denied access.

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