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

WMSValidator should use attributes() instead of getAttributes()

    Details

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

      Description

      The WMSValidator, when trying to validate a FeatureInfo, looks for the geometry attribute binding through the getAttributes() method.

      https://github.com/geoserver/geoserver/blob/bf0345d228111c15aeff6f7c1bc87b4ed230af96/src/wms/src/main/java/org/geoserver/wms/WMSValidator.java#L65

      This may fail if the Resource has not been loaded and the configuration does not contain the type of the attributes.

      In order to avoid this issue (which may cause an NPE) the WMSValidator should call the method attributes() instead.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              afabiani Alessio Fabiani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: