env parameters not replaced when using GetLegendGraphic with format json

Description

We are using geoserver 2.15.0. When using the following request, a jpeg is returned in which the env parameters are replaced by actual values:

https://localchost/geoserver/wms?service=WMS&request=GetLegendGraphic&layer=myLayer&format=image/jpeg&env=min:0;max:50&LEGEND_OPTIONS=forceRule:true

When doing the same request with format application/json, the env parameters are not replaced

Environment

None

Activity

Andrea Aime 
September 21, 2019 at 2:52 PM

The JSON format is pretty new indeed, would not be surprised to find such issues in it. Do you have skills/time to do a pull request to fix it?

Details

Assignee

Reporter

Affects versions

Priority

Created September 3, 2019 at 2:54 PM
Updated September 21, 2019 at 2:52 PM