[Geoserver-devel] [JIRA] (GEOS-7217) WMS 1.1 Capabilities document does not match DTD - missing Title in style

Brad Hards created an issue

GeoServer / BugGEOS-7217

WMS 1.1 Capabilities document does not match DTD - missing Title in style

Issue Type:

BugBug

Affects Versions:

2.9

Assignee:

Unassigned

Components:

CITE

Created:

28/Sep/15 9:13 AM

Priority:

MediumMedium

Reporter:

Brad Hards

During CITE testing on WMS 1.1, I hit a failure that looks like:

Test wms:wmsops-getcapabilities-response-2 type Mandatory default result Passed (s0003/d1e1036_1)

Assertion: The response to a GetCapabilities request references a valid copy of the DTD in Annex A.1 at a fully-qualified and accessible location and validates with the DTD.
{{
Request d1e3959_1:
Method: get
URL: http://localhost:8080/geoserver/wms?SERVICE=WMS&&ReQuEsT=GetCapabilities&SeRvIcE=WMS&VeRsIoN=1.1.1
Response from parser parsers:XMLValidatingParser:

Messages from parser parsers:XMLValidatingParser:
Validation error at line 6493, column 17:
The content of element type “Style” must match “(Name,Title,Abstract?,LegendURL*,StyleSheetURL?,StyleURL?)”.
Validation error at line 6787, column 17:
The content of element type “Style” must match “(Name,Title,Abstract?,LegendURL*,StyleSheetURL?,StyleURL?)”.
2 validation errors detected.}}

The problem appears to be styles that do not have Title elements:

        <Style>
          <Name>poly_landmarks</Name>
          <LegendURL width="22" height="80">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=tiger%3Apoly_landmarks"/>
          </LegendURL>
        </Style>

and

        <Style>
          <Name>tiger_roads</Name>
          <LegendURL width="22" height="80">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=tiger%3Atiger_roads"/>
          </LegendURL>
        </Style>

The options would appear to be to require Title in all the SLD, or to create a title if we don’t have one. I think the second seems better, unless the SLD spec requires titles.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-07-011#70107-sha1:db940e9)

Atlassian logo