[Geoserver-devel] [jira] Created: (GEOS-3818) GetFeature 1.0 does not respect schema overrides

GetFeature 1.0 does not respect schema overrides
------------------------------------------------

                 Key: GEOS-3818
                 URL: http://jira.codehaus.org/browse/GEOS-3818
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 2.0.1
            Reporter: Aleda Freeman
            Assignee: Andrea Aime
            Priority: Minor

GetFeature 1.1 respects the schema overrides but GetFeature 1.0 does not.

For example, fields can be "hidden" by leaving them out of the schema.xml and schema.xsd files.
But with GetFeature 1.0 requests the entire featureType's set of field values are still returned.

This is an issue for users who are not supposed to give out certain data. Having the ability to use a schema override is more convenient than creating a spatial view, although that is an acceptable workaround if this proves difficult to fix.

For this schema.xsd:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:massgis="http://www.mass.gov/mgis&quot; elementFormDefault="qualified" targetNamespace="http://www.mass.gov/mgis&quot;&gt;
   <xsd:import namespace="http://www.opengis.net/gml&quot; schemaLocation="http://giswebservices.massgis.state.ma.us/geoserver/schemas/gml/3.1.1/base/gml.xsd&quot;/&gt;
   <xsd:complexType name="GISDATA.NAVTEQRDS_ARCType">
     <xsd:complexContent>
       <xsd:extension base="gml:AbstractFeatureType">
         <xsd:sequence>
        <xsd:element type = "xsd:string" minOccurs = "0" name = "ST_NAME" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "xsd:string" minOccurs = "0" name = "ROUTE_TYPE" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "xsd:string" minOccurs = "0" name = "L_TOWNPOST" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "xsd:string" minOccurs = "0" name = "R_TOWNPOST" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "xsd:string" minOccurs = "0" name = "L_TOWNREAL" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "xsd:string" minOccurs = "0" name = "R_TOWNREAL" nillable = "true" maxOccurs = "1" />
        <xsd:element type = "gml:MultiLineStringPropertyType" minOccurs = "0" name = "SHAPE" nillable = "true" maxOccurs = "1" />
         </xsd:sequence>
       </xsd:extension>
     </xsd:complexContent>
   </xsd:complexType>
   <xsd:element name="GISDATA.NAVTEQRDS_ARC" substitutionGroup="gml:_Feature" type="massgis:GISDATA.NAVTEQRDS_ARCType"/>
</xsd:schema>

the DescribeFeatureType actually does return the short list of fields, and a GetFeature version 1.1 returns the short list of fields, but GetFeature 1.0 returns the entire list.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira