ows_schemas_location not getting honored by all services #4624

Closed
woodbri opened this Issue Apr 8, 2013 · 1 comment

Projects

None yet

3 participants

@woodbri
woodbri commented Apr 8, 2013

Adding ows_schemas_location seems to have solved the the wms schema requests, but we are still getting requests going to:

http://schemas.opengis.net/sld/1.10/sld_capabilities.xsd

rather than to the host specified in ows_schemas_location. So this might be a bug or oversight related to the sld code.

Next we tried adding:
"ows_sld_enabled" "false"

Based on this link:
http://mapserver.org/ogc/wms_server.html#web-object-metadata

But this seems to be ignored also as sld was still advertised in the getcapabilities document.

I looked at the source code and can not find

$ grep -li ows_sld_enabled *
$ grep -li sld_enabled *
mapwms.c

So we tried sld_enabled instead of ows_sld_enabled, but no joy with this one either.

This looks like it might be another bug, or my error in understanding the docs and source code.

Below is the getcapabilities document:

I added the following into my .map file

"ows_schemas_location" "http://10.50.0.35"
"ows_sld_enabled" "false"

You can see in the capabilities xml file, it did accept my schema location, however, it is still giving the default location for " http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd "

We really need a location that is not on the internet.

@tomkralidis tomkralidis was assigned Apr 8, 2013
@tomkralidis tomkralidis pushed a commit to tomkralidis/mapserver that referenced this issue Apr 9, 2013
Tom Kralidis use ows_schemas_location for sld_capabilities ref (#4624) c21101b
@tbonfort
Member
tbonfort commented Apr 9, 2013

closed with #4625

@tbonfort tbonfort closed this Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment