Matt Kalinowski created GEODE-3106:
--------------------------------------

             Summary: REST API endpoint /servers returns private IP address 
instead of hostname-for-clients param
                 Key: GEODE-3106
                 URL: https://issues.apache.org/jira/browse/GEODE-3106
             Project: Geode
          Issue Type: Bug
          Components: client/server, general, rest (admin)
            Reporter: Matt Kalinowski


Starting a single server with,

gfsh> start server --name=rest-server --start-rest-api=true 
--http-service-port=8080 --hostname-for-clients={public-ip-addr}

will launch a server.

* http://{public-ip-addr}:8080/gemfire-api/v1/ping returns "HTTP 200 OK" as 
expected, and http://{public-ip-addr}:8080/gemfire-api/v1 successfully lists 
all regions.
* http://{public-ip-addr}:8080/gemfire-api/v1/servers will return the [ 
"http://{private-ip}:8080"; ]

The documentation states "Setting a specific hostname-for-clients causes server 
locators to use this value when telling clients how to connect to this cache 
server. This is useful in the case where the cache server may refer to itself 
with one hostname, but the clients need to use a different hostname to find the 
cache server."

The /servers endpoint should be returning the hostname-for-clients param as 
that is how clients will connect to those servers, rather than the 
internal/private IP address.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to