[Geoserver-devel] [jira] Created: (GEOS-2159) New KML Reflector does not validate the number of filters in the request matches the number of layers in the request

New KML Reflector does not validate the number of filters in the request matches the number of layers in the request
--------------------------------------------------------------------------------------------------------------------

                 Key: GEOS-2159
                 URL: http://jira.codehaus.org/browse/GEOS-2159
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.6.4
            Reporter: Matt Bucknam
            Assignee: Andrea Aime

The new KML Reflector (/wms/src/main/java/org/vfny/geoserver/wms/responses/map/kml/KMLReflector.java) does not validate the request contains the same number of filters as it does layers like the old one did (/wms/src/main/java/org/vfny/geoserver/wms/servlets/KMLReflector.java)

This causes an array index out of bound exception instead of the more descriptive error message given in the old one.

I would like to put these checks as well as some other request parameter checks in the new reflector and bail early if they fail with a descriptive message. I can submit a patch if it sounds like a good solution.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira