[Geoserver-devel] [jira] (GEOS-6057) WMS 1.3.0 GetMap request is invalid when Layers parameter is omitted (as per guidance for using external SLD)

james passmore created BugGEOS-6057
WMS 1.3.0 GetMap request is invalid when Layers parameter is omitted (as per guidance for using external SLD)

Issue Type:

BugBug

Affects Versions:

2.4.0

Assignee:

Andrea Aime

Components:

Documentation, WMS

Created:

26/Sep/13 11:45 AM

Description:

in the GeoServer documentation for example http://docs.geoserver.org/latest/en/user/styling/sld-working.html it states “In all of these cases, if the WMS layers parameter is not supplied then the map content is defined completely by the layers and styles present in the external SLD.”

This advice may have been valid for a WMS 1.1.1 GetMap request, where the LAYERS parameter is optional for an SLD enabled server when the SLD parameter is set, but for a WMS 1.3.0 GetMap request the LAYERS parameter is mandatory.

There are therefore two issues to fix the first is with the documentation, the second is with the behaviour of GeoServer.

The following request therefore should not return a styled map, instead it should return an exception (according to section 6.11 of the specification):

http://maps.dgs.udel.edu/geoserver/DGS_Surficial_and_Contact_Geology/wms?service=WMS&TRANSPARENT=TRUE&version=1.3.0&request=GetMap&STYLES=&EXCEPTIONS=INIMAGE&FORMAT=image/png&CRS=EPSG%3A4326&SLD=http%3A%2F%2Fogc.bgs.ac.uk%2Fsld%2Fgeoserver-style-test.sld&SAVEDLAYERS=US-DE_DGS_100k_Surficial_Geology&BBOX=39.57931760121924,-75.79289049774037,39.784397224903465,-75.45691470533502&WIDTH=1250&HEIGHT=763&< /p>

Project:

GeoServer

Priority:

MajorMajor

Reporter:

james passmore

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)