[Geoserver-devel] [JIRA] (GEOS-9298) WMS 1.1.1 capabilities document contains invalid GetLegendGraphic links

Nuno Oliveira created an issue

GeoServer / BugGEOS-9298

WMS 1.1.1 capabilities document contains invalid GetLegendGraphic links

Issue Type:

BugBug

Assignee:

Unassigned

Created:

01/Aug/19 9:44 PM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

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:

<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/ows?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=nurc%3AArc_Sample&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:

<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&"/>
            </Get>
          </HTTP>
        </DCPType>
      </GetLegendGraphic>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100106-sha1:9f2d32f)

Atlassian logo