SchemaLocations on the WFS output header are invalid
----------------------------------------------------
Key: GEOS-3676
URL: http://jira.codehaus.org/browse/GEOS-3676
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 2.1.x
Reporter: Rini Angreani
Assignee: Andrea Aime
Priority: Critical
Fix For: 2.0.0
Attachments: SISS-510.patch
On WFS output, the schema locations encoded on the header are
describeFeatureType URL for that type eg.
<wfs:FeatureCollection
...
xsi:schemaLocation="urn:cgi:xmlns:CGI:GeoSciML:2.0
http://d00109:8082/geoserver-ws-0.1/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=gsml:MappedFeature
http://www.opengis.net/wfs
http://d00109:8082/geoserver-ws-0.1/schemas/wfs/1.1.0/wfs.xsd">
Users have been complaining that these schema locations wouldn't validate on
XML editors (in particular XMLSpy), stopping them from doing further work.
Users can now supply schemaLocation in their app-schema mapping file eg.
<targetTypes>
<FeatureType>
<schemaUri>http://schemas.opengis.net/GeoSciML/geosciml.xsd</schemaUri>
</FeatureType>
</targetTypes>
The patch I attached fixes the schema location to encode to the provided schema
URI, if there is one. Otherwise it'll encode the describeFeatureType URL by
default.
Test covered in updated FeatureChainingWFSTest as well.
On the side note, the WFS schema location relates back to the host and that if
the application is deployed on a separate machine, they won't be able to access
the schema, eg.
"http://d00109:8082/geoserver-ws-0.1/schemas/wfs/1.1.0/wfs.xsd"
But I'm going to raise a different issue for that one and address it later.
--
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel