[Geoserver-devel] [JIRA] (GEOS-10599) Service exception when SLD_BODY parameter is empty

Ti Marner created an issue

GeoServer / BugGEOS-10599

Service exception when SLD_BODY parameter is empty

Issue Type:

BugBug

Affects Versions:

2.21.0

Assignee:

Unassigned

Components:

WMS

Created:

25/Jul/22 4:56 PM

Environment:

  • Tomcat 9.0
  • OpenJDK 11
  • GeoServer 2.21.0

Priority:

MediumMedium

Reporter:

Ti Marner

Supplying an empty SLD_BODY in a WMS GET request causes GeoServer to output a service exception as below.

Request:
http://localhost/geoserver/tiger/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&tiled=true&STYLES&LAYERS=tiger:tiger_roads&tilesOrigin=40.684221,-74.02722&WIDTH=256&HEIGHT=256&CRS=EPSG:4326&BBOX=40.75927734375,-73.9654541015625,40.7647705078125,-73.9599609375&SLD_BODY

Exception report:

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc https://geo.powys.gov.uk/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException> Error parsing style Error parsing content ParseError at [row,col]:[1,1] Message: Premature end of file. </ServiceException>
</ServiceExceptionReport>

Expected behaviour is that GeoServer should ignore the query parameter when it is empty.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100202-sha1:5d6ea73)

Atlassian logo