We're updating the issue view to help you get more done. 

IndexOutOfBoundsException on group layer legend

Description

  • Create a layer group

  • Add an odd numbered amount of layers (at least 3)

  • Ask for legend with following options: legend_options=forceLabels:on;forceTitles:off (.../geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&WIDTH=29&HEIGHT=29&legend_options=forceLabels:on;forceTitles:off&LAYER=X)

  • Expected result: A legend with all names, but no headers

http://prntscr.com/h9sbp8

If I increase the amount of layers to 4 it works, if I increase it to 5 it will say indexoutofboundsexception: index: 5 etc.

UPDATE:
Using geoserver 2.12. 0

http://prntscr.com/h9t6d2

Environment

None

Status

Assignee

Unassigned

Reporter

Willem Eppen

Triage

Fix versions

Affects versions

2.12.0

Priority

Medium