server doesn't return the fetched property and all the mandatories properties defined in the schema

Description

>When I make this request:
>> http://localhost:8080/geoserver/wfs?REQUEST=GetFeature&OUTPUTFORMAT=GML2&TYPENAME=fire:fire&PROPERTYNAME=fire:the_geom - http://localhost:8080/geoserver/wfs?REQUEST=GetFeature&OUTPUTFORMAT=GML2&TYPENAME=fire:fire&PROPERTYNAME=fire:the_geom
>>
>> I get only the features with the specified property name (which is an
>> optional property), but the wfs specification says that the server must
>> return the fetched property and all the mandatories properties defined
>> in the schema.
>>
>> The same occurs when I make the request with a mandatory property (I get
>> only the specified property).

Yeah, our solution to that requirement for WFS is a bit hacky. In 1.2
it'll be done with schema.xml files, for 1.1 the information is
duplicated. Basically what you need to do is set the attributes that are
mandatory in the info.xml file <attributes><attribute name="gid"
mandatory="true"></attributes> I think is the form, check the
advanced.htm in the user docs, and I think one of the sample info.xml
files also has it. Note that the non-mandatory ones you will also have to
list, or they will not show up at all (this is how you 'hide' attributes).

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:58 PM

CodeHaus Comment From: cholmes - Time: Fri, 5 Mar 2004 23:18:12 -0600
---------------------
<p>This is done in 1.2, and 1.1 has a hack to get around it, specifying the attribute as mandatory in info.xml</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Priority

Medium
Configure