[MapServer-users] Seeing Missing required parameter STYLES in some calls in the network tab
Rob Dennett
Rob.Dennett at twdb.texas.gov
Fri Aug 23 16:23:11 PDT 2024
Hi,
Looking at the network tab for a page request which doesn't seem to be downloading our map following an upgrade to 8.0, I am seeing the following in the payload preview:
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="MissingParameterValue">
msWMSLoadGetMapParams(): WMS server error. Missing required parameter STYLES. Note to service administrators: defining the "wms_allow_getmap_without_styles" "true" MAP.WEB.METADATA item will disable this check (backward compatibility with behaviour of MapServer < 8.0)
</ServiceException>
</ServiceExceptionReport>
Part of the URL is
format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&transparent=true&width=256&height=256&layers=PolygonSources,LineSources,PointSources,AllSources
And I am guessing this all has something to do with https://github.com/mapserver/mapserver/issues/6012
[https://opengraph.githubassets.com/d188ccef73ff8d7aa01a95c6437a0268e30e9267028bcb906547a2b2247562dd/MapServer/MapServer/issues/6012]<https://github.com/mapserver/mapserver/issues/6012>
MapServer treats WMS STYLES param as optional, but the WMS spec says it is mandatory · Issue #6012 · MapServer/MapServer<https://github.com/mapserver/mapserver/issues/6012>
We got a report that MapServer treats the WMS GetMap STYLES param as optional, but the WMS spec state that it should be mandatory. (I verified and GetMap STYLES is indeed mandatory in WMS 1.1.0, 1....
github.com
The problem is that I don't know what the STYLES param is. Is this related and if so, where can I learn about this to see what changes I need to make to my .map files?
Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240823/dc1c89c0/attachment.htm>
More information about the MapServer-users
mailing list