[Geoserver-devel] [jira] Created: (GEOS-4624) Generated KML does not respect PROXY_BASE_URL

Generated KML does not respect PROXY_BASE_URL
---------------------------------------------

                 Key: GEOS-4624
                 URL: http://jira.codehaus.org/browse/GEOS-4624
             Project: GeoServer
          Issue Type: Bug
          Components: Google Earth KML Output
    Affects Versions: 2.1.0
         Environment: Geoserver running on a local network, behind a proxy host.
PROXY_BASE_URL is set on Geoserver
Apache Proxy rules are set at the proxy host.

            Reporter: Jorge Gustavo Rocha
            Assignee: Andrea Aime
            Priority: Minor

The URLs returned by GetCapabilities are ok, ie are generated using the PROXY_BASE_URL
GetMap is working ok.
The only thing not working ok is the generated KML documents. Instead of using the PROXY_BASE_URL value, it is using the local IP.

Example of returned document:
(...)
         <visibility>1</visibility>
         <Url>
            <href><![CDATA[http://192.254.254.3:8080/geoserver/wms?height=1024&width=1024&layers=a&request=GetMap&service=wms&styles=a&format_options=SUPEROVERLAY:false;KMPLACEMARK:false;KMSCORE:40;KMATTR:true;&srs=EPSG:4326&format=application/vnd.google-earth.kmz&transparent=false&version=1.1.1]]></href>
(...)

The local URL http://192.254.254.3:8080/ should be replaced by PROXY_BASE_URL/geoserver/wms/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira