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

Malformed WMS GetFeatureInfo XML response if raster sample dimension description not valid NCName

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.1, 2.10-M0
    • Fix Version/s: 2.9.2, 2.10-beta
    • Component/s: NetCDF, WMS
    • Labels:
      None

      Description

      RasterLayerIdentifier builds a SimpleFeatureType to service WMS GetFeatureInfo requests by using the sample dimension descriptions as the local names of the properties. For NetCDF, these are the long_name of the source variable, but this attribute can contain any text, including spaces. Because the local name of any XML element must be an xs:NCName, a property name built from a long_name that contains spaces causes a GetFeatureInfo XML response to be malformed.

      For example, a coverage from a NetCDF file with:

      analyzed_sst:long_name = "Analyzed Sea Surface Temperature"
      

      will result in malformed GetFeatureInfo XML responses like this snippet:

      <sf:Analyzed Sea Surface Temperature>23.0</sf:Analyzed Sea Surface Temperature>
      

      The proposed solution is to convert sample dimension descriptions to valid NCNames by replacing invalid characters with underscore ("_") and null or empty descriptions with "Unknown".

        Attachments

          Activity

            People

            • Assignee:
              bencaradocdavies Ben Caradoc-Davies
              Reporter:
              bencaradocdavies Ben Caradoc-Davies
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: