KML reflector call without layers returns a cryptic error message

Description

If you don't provide a layers attribute in requests to the KML reflector, you get a raw exception rather than an error message explaining that this field is required.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:35 PM

CodeHaus Comment From: jratike80 - Time: Tue, 10 Mar 2015 03:01:04 -0500
---------------------
<p>GS 2.7-RC1 gives an error message that looks like this:</p>

<p><a href="http://localhost:8080/geoserver/wms/kml?" class="external-link" rel="nofollow">http://localhost:8080/geoserver/wms/kml?</a></p>

<p>&lt;ServiceExceptionReport version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc <a href="http://localhost:8080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd" class="external-link" rel="nofollow">http://localhost:8080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd</a>"&gt;

&lt;ServiceException&gt;

Could not find request reader (either kvp or xml) for: org.geoserver.wms.GetMapRequest

&lt;/ServiceException&gt;

&lt;/ServiceExceptionReport&gt;</p>

<p>It is not the "Unhandled IndexOutOfBoundsException" as in the title but not very descriptive either.</p>

Andrea Aime
November 15, 2015, 9:58 AM

There is not much I can do there, the request does not even get parsed, but I added a hint to check the documentation for required params in the error message.

Andrea Aime
February 15, 2017, 11:52 AM

Mass closing all resolved issues not modified in the last 4 weeks

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium