Cascading WMS 1.3.0 from MapServer fails with Basic Auth

Description

MapServer WMS is sending GetCapabilities document with an extended schema and for making the document to validate the extension should be fetched from the server with a special GetSchemaExtension request. This is how the GetCapabilities document begins.

<WMS_Capabilities version="1.3.0" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd - https://karttakuva-testi.mmmtike.fi/cgi-bin/mmm_julkinen_wms?service=WMS&version=1.3.0&request=GetSchemaExtension">

Geoserver can't read the schema extension if the remote server requires authentication. The reason is that the username and password which are configured for the WMS store are not used when Geoserver makes the GetSchemaExtension request (in this case https://karttakuva-testi.mmmtike.fi/cgi-bin/mmm_julkinen_wms?service=WMS&version=1.3.0&request=GetSchemaExtension - https://karttakuva-testi.mmmtike.fi/cgi-bin/mmm_julkinen_wms?service=WMS&version=1.3.0&request=GetSchemaExtension). Server sends back only http error 401 "Not authenticated" and Geoserver can't make the store.

I made a service that requires basic auth with username/password "foobar/foo" into

https://karttakuva-testi.mmmtike.fi/cgi-bin/mmm_julkinen_wms?service=WMS&version=1.3.0&request=GetCapabilities - https://karttakuva-testi.mmmtike.fi/cgi-bin/mmm_julkinen_wms?service=WMS&version=1.3.0&request=GetCapabilities

Server has self-signed certificate. Certificate files are attached to the ticket so they can be added to the keystore of jre.

Previous discussion: http://sourceforge.net/p/geoserver/mailman/message/32853923/ - http://sourceforge.net/p/geoserver/mailman/message/32853923/

Environment

None

Activity

Show:
Andrea Aime
February 15, 2017, 11:47 AM

Mass closing all resolved issues not modified in the last 4 weeks

Assignee

Andrea Aime

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure