WMS 1.1.1 capabilities document contains invalid GetLegendGraphic links

Description

I was able to reproduce this on master using the GeoServer release test data, to reproduce just perform a WMS 1.1.1. GetCapabilities, the document will contain the following links:

1 <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/ows?request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=nurc%3AArc_Sample&amp;style=raster"/>

... as you can see the service=WMS parameter is missing, this happens for all GetLegendGraphic URLs.

Note that the GetLegendGraphic operation metadata is correct:

1 2 3 4 5 6 7 8 9 10 11 12 13 <GetLegendGraphic> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>application/json</Format> <Format>image/gif</Format> <DCPType> <HTTP> <Get> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8061/geoserver/ows?SERVICE=WMS&amp;"/> </Get> </HTTP> </DCPType> </GetLegendGraphic>

 

Environment

None

Status

Assignee

Unassigned

Reporter

Nuno Oliveira

Triage

None

Fix versions

None

Affects versions

None

Priority

Medium
Configure