[Geoserver-devel] [jira] Created: (GEOS-4074) Errors when multiple LEGEND_OPTIONS parameters are supplied

Errors when multiple LEGEND_OPTIONS parameters are supplied
-----------------------------------------------------------

                 Key: GEOS-4074
                 URL: http://jira.codehaus.org/browse/GEOS-4074
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.0.x
         Environment: Linux ubuntu 32bit & WindowsXP
            Reporter: Ivan Grcic
            Assignee: Andrea Aime
         Attachments: LEGEND_OPTIONS_ClassCastException.txt

If we suply more then one value (comma separated) for LEGEND_OPTION parameter, strange things happen.

It depends on the order of the values. As i need foreLabels and fontSize options, I tested these requests:

http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=200&HEIGHT=200&LAYER=topp:states&legend_options=forceLabels:off,fontSize:40

No error is thrown, but forceLabels:off isnt applied

http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=200&HEIGHT=200&LAYER=topp:states&legend_options=fontSize:40,forceLabels:ff

Results: (log in attachment)
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt; <ServiceExceptionReport version="1.1.1" > <ServiceException>
      java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
java.util.ArrayList cannot be cast to java.lang.String
</ServiceException></ServiceExceptionReport>

--
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