schemaLocation in app-schema GetFeature response contains non-namespace-qualified DescribeFeatureType
-----------------------------------------------------------------------------------------------------
Key: GEOS-3115
URL: http://jira.codehaus.org/browse/GEOS-3115
Project: GeoServer
Issue Type: Bug
Components: WFS
Reporter: Ben Caradoc-Davies
Assignee: Rini Angreani
Fix For: 2.0.x
Because the DescribeFeatureType response given in the schemaLocation for an app-schema DataAccess feature type is not namespace-qualified, the URL is invalid, and the response cannot be validated. If the type name is prefixed with the namespace prefix, the URL becomes valid. Even better, would it be possible to refer directly to the app-schema schemaUri? This would remove the need for a DescribeFeatureType call. (We still need to support the latter to be WFS compliant.)
Example showing missing prefix:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection numberOfFeatures="2"
timeStamp="2009-06-03T14:06:45.379+08:00"
xsi:schemaLocation="urn:cgi:xmlns:CGI:GeoSciML:2.0 http://localhost:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=GeologicUnit http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows"
xmlns:wfs="http://www.opengis.net/wfs">
<gml:featureMembers>
<gsml:GeologicUnit gml:id="gu.1">
<gml:description>Cheese</gml:description>
<gml:name>Yaugher Volcanic Group</gml:name>
</gsml:GeologicUnit>
<gsml:GeologicUnit gml:id="gu.2">
<gml:description>Olivine basalt</gml:description>
<gml:name>New Group</gml:name>
</gsml:GeologicUnit>
</gml:featureMembers>
</wfs:FeatureCollection>
{code}
Should have a DescribeFeatureType with typeName=gsml:GeologicUnit, or even better, an external URL such as http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd
--
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