[Fdo-trac] [fdo-trac] #846: WFS: corrupted schema from http://www.mapinfo.com/miwfs

FDO trac_fdo at osgeo.org
Thu Aug 16 08:13:15 PDT 2012


#846: WFS: corrupted schema from http://www.mapinfo.com/miwfs
-----------------------------+----------------------------------------------
   Reporter:  brentrobinson  |       Owner:  brentrobinson                     
       Type:  defect         |      Status:  new                               
   Priority:  major          |   Milestone:                                    
  Component:  WFS Provider   |     Version:  3.7.0                             
   Severity:  2              |    Keywords:  WFS DescribeSchema AbstractFeature
External_id:                 |  
-----------------------------+----------------------------------------------

Comment(by brentrobinson):

 The WFS provider describe schema command gets all the schemas for the
 connected WFS, plus any it depends on, including the GML schema. However,
 the GML schema is treated as a system schema and is removed from the
 schema collection returned to the caller. Any elements in other
 schemas, that reference gml schema elements, are also removed.

 This can be problematic if the gml schema is removed before all other
 schemas are checked. In the case of the unit test, the gml schema is
 removed
 before the referencing elements are removed from the wfs schema. This
 leads to the following sequence of events:

  * gml schema is destroyed
  * the gml:AbstractFeature loses its parent schema
  * the wfs schema is checked. When the provider looks at the
 wfs:InsertElement.gml/_Feature object property, it doesn't recognize its
 referenced class (AbstractFeature) as being in the gml schema. This object
 property is not removed.
  * later on, the described schemas are written back to XML. This generates
 the error since AbstractFeature is not in a feature schema.

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/846#comment:1>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list