Ti Marner ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A8915d1c9-9221-42fd-9810-8efae1462a43 ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) / Bug ( https://osgeo-org.atlassian.net/browse/GEOS-10599?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) GEOS-10599 ( https://osgeo-org.atlassian.net/browse/GEOS-10599?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) Service exception when SLD_BODY parameter is empty ( https://osgeo-org.atlassian.net/browse/GEOS-10599?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) Issue Type: Bug 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: Medium Reporter: Ti Marner ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A8915d1c9-9221-42fd-9810-8efae1462a43 ) 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. ( https://osgeo-org.atlassian.net/browse/GEOS-10599#add-comment?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10599#add-comment?atlOrigin=eyJpIjoiY2EwYTdiOTIxNTI5NGYxMGI2MDc3ZTkxYmRjN2ZiNTEiLCJwIjoiaiJ9 ) Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100202- sha1:5d6ea73 )
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel