Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.x
-
Fix Version/s: None
-
Component/s: WMS
-
Labels:None
-
Environment:Linux ubuntu 32bit & WindowsXP
-
Number of attachments :
Description
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"> <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>
Issue should be called
Erros when multiple values are supplied for LEGEND_OPTION parameter
So if somene can rename it, tnx