Creating external WMS Source behind a authentication Proxy

Description

I think I discovered a bug concering the configuration of external WMS Data Sources. I’d like to configure a WMS Server somewhere in the Internet as Data source in order to let Geoserver do some caching and reprojection into my favourite CRS.

In my Organisation it is required to pass all Internet access through a HTTP Proxy which requires Authentication by the corresponding HTTP Header.

So I set up my JVM with the following parameters:

-Dhttp.proxyHost=proxy -Dhttp.proxyUser=me -Dhttp.proxyPassword=pwd -Dhttp.proxyPort=8080 –Dhttp.nonProxyHosts=*.myorganisation.com

When creating the new data source the proxy authentication is not taken into account, the Connection test to the capabilities URL (which seems to come somewhere from apache axis) results in a http 407 authentication required error.

As a workaround, I needed to configure a datasource pointing to a Capabilites URL inside myorganisation.com. (hence no proxy would be used on Connection Testing).

After the WMS Datasource has been saved for the first time, all subsequent Requests do use the proxyPassword and proxyUser parameters from the JVM System properties correctly, it is even possible to change the URL to point to the external WMS Server via the web interface.

As it seems, only the first Connection Test on Creation of a remote WMS server datasource needs to be configured to use proxyUser and proxyPassword. The datastore implementation (geotools?) does take these into account correctly.

Environment

None

Attachments

1

Activity

codehaus 
April 10, 2015 at 4:17 PM

CodeHaus Comment From: sebastianschmidt - Time: Tue, 17 Sep 2013 07:33:11 -0500
---------------------
<p>Stacktrace of http 407 error</p>

Details

Assignee

Reporter

Affects versions

Priority

Created September 17, 2013 at 10:27 AM
Updated October 31, 2015 at 4:54 PM