[MapServer-users] Seeing Missing required parameter STYLES in some calls in the network tab

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Aug 26 11:18:15 PDT 2024


Thanks for catching this Rob, I've tried to highlight this in the WMS 
docs, and have added it into the Migration Guide for 8.0 ( 
https://mapserver.org/MIGRATION_GUIDE.html )

-jeff




-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/


On 2024-08-23 8:23 p.m., Rob Dennett via MapServer-users wrote:
> 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://github.com/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
> 
>



More information about the MapServer-users mailing list