id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
675,Mapserver WFS ignores PropertyName outside Filter,bartvde@…,assefa,"{{{
When a performing a GetFeature like the following:

<GetFeature service=""WFS"" version=""1.0.0""
  maxFeatures=""20"" 
  xmlns=""http://www.opengis.net/wfs"" 
  xmlns:gml=""http://www.opengis.net/gml"" 
  xmlns:ogc=""http://www.opengis.net/ogc"" 
  xmlns:xlink=""http://www.w3.org/1999/xlink"" 
  xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" 
  xsi:schemaLocation=""http://schemas.opengis.net/wfs/1.0.0 WFS-basic.xsd"">
  <Query typeName=""Gemeentes"">
    <PropertyName>GEMCODE</PropertyName>
    <ogc:Filter>
      <ogc:BBOX>
      	<PropertyName>MS_GEOMETRY</PropertyName>
      	<gml:Box><gml:coordinates>121000,469000 
140000,470000</gml:coordinates></gml:Box>
      </ogc:BBOX>
    </ogc:Filter>
  </Query>
</GetFeature>

Mapserver should return only the GEMCODE attribute, it returns the full set.

This is what the WFS 1.0 spec says about the behaviour:

The <PropertyName> element is used to enumerate the feature properties that 
should be selected during a query and whose values should be included in the 
response to a GetFeature request. A client application can determine the 
properties of a feature by making a DescribeFeatureType request before 
composing a GetFeature request. The DescribeFeatureType operation [sec. 8] will 
generate a GML application schema defining the schema of the feature type. The 
client can then select the properties to be fetched. In addition, the client 
can determine which feature properties are mandatory and must be fetched in 
order for the WFS to be able to generate an instance of the feature type that 
will validate againt the generated GML application schema. In the event that a 
WFS encounters a query that does not select all mandatory properties of a 
feature, the WFS will internally augment the property name list to include all 
necessary property names. A WFS client must thus be prepared to deal with a 
situation where it receives more property values than it requests.
If no <PropertyName> elements are specified, then all feature properties should 
be fetched.
}}}",enhancement,closed,high,5.6 release,WFS Server,4.2,minor,fixed,,mapserver@…
