[Geoserver-devel] [jira] (GEOS-5645) GET Request including same parameter multiple times fails

Jonathan Moules created BugGEOS-5645
GET Request including same parameter multiple times fails

Issue Type:

BugBug

Affects Versions:

2.3-beta1

Assignee:

Andrea Aime

Created:

07/Feb/13 6:53 AM

Description:

Picked up from the mailing list and further tested.

This URL fails:

localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image/png&width=20&height=20&layer=restricted&transparent=true&format=image/png&legend_options=fontAntiAliasing:true;fofntSize:11;fontName:Arial&SCALE=136494.76705452034

With something like:

<ServiceException code=“InvalidFormat”>
Invalid graphic format: [Ljava.lang.String;@795d02
</ServiceException>

The URL has &format=image/png in it twice. Both are valid and work on their own.

Two “&layer’s” results in a failure too:

  • java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String [Ljava.lang.String; cannot be cast to java.lang.String

request, height, width, and transparent are all fine when duplicated, even if the values are different. This probably holds up for other requests/parameter combinations too.

GeoServer should probably ignore any after the first.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)