Uploaded image for project: 'GeoServer'
  1. GEOS-7217

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: 2.9-M0
    • Fix versions: 2.7.3, 2.8.1
    • Components: CITE, WMS
    • Labels:
      None

      Description

      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&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;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&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;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.

        Attachments

          Activity

            People

            • Assignee:
              bradh Brad Hards
              Reporter:
              bradh Brad Hards
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: