[Geoserver-devel] [jira] Created: (GEOS-105) server doesn't return the fetched property and all the mandatories properties defined in the schema

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-105

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GEOS-105
    Summary: server doesn't return the fetched property and all the mandatories properties defined in the schema
       Type: Bug

     Status: Open
   Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
  Remaining: Unknown

    Project: GeoServer
   Versions:
             1.2-beta

   Assignee: Chris Holmes
   Reporter: Miguel Ángel Esbrí Palomares

    Created: Thu, 4 Mar 2004 8:00 AM
    Updated: Thu, 4 Mar 2004 8:00 AM
Environment: windows xp os, geoserver 1.1.1

Description:

When I make this request:

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).

---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira