LegacyCatalogImporter does not recurse into superType when finding descriptors
------------------------------------------------------------------------------
Key: GEOS-3013
URL: http://jira.codehaus.org/browse/GEOS-3013
Project: GeoServer
Issue Type: Bug
Components: Global
Reporter: Ben Caradoc-Davies
Assignee: Andrea Aime
LegacyCatalogImporter does not recurse into the superType of a FeatureType when looking for the descriptor of a property.
Coincidentally, I ran into the same issue in GeoTools GML2EncodingUtils.
http://n2.nabble.com/ComplexTypeImpl-and-inheritance-of-descriptors-from-complex-super-type-td2808490.html
Broken LegacyCatalogImporter:
{code}
//look up a descriptor that this element maps to
PropertyDescriptor pd = ft.getDescriptor( ce.getName() );
if ( pd == null || !(pd instanceof AttributeDescriptor)) {
LOGGER.warning( "Attribute " + ce.getName() + " specified in schema, but not" +
" in underlying feature type. Ignoring.");
continue;
}
{code}
Errors while running CITE WFS 1.0 tests:
{code}
08 May 15:08:51 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:51 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:51 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cgf:MLines'
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Other'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Locks'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cgf:Polygons'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Inserts'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cgf:Lines'
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Nulls'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cgf:Points'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Deletes'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cdf:Updates'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 INFO [geoserver.catalog] - Loaded feature type 'cgf:MPolygons'
08 May 15:08:52 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:52 WARN [geoserver.catalog] - Attribute boundedBy specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:53 INFO [geoserver.catalog] - Loaded feature type 'cgf:MPoints'
08 May 15:08:53 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:53 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:53 INFO [geoserver.catalog] - Loaded feature type 'cdf:Fifteen'
08 May 15:08:53 WARN [geoserver.catalog] - Attribute description specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:53 WARN [geoserver.catalog] - Attribute name specified in schema, but not in underlying feature type. Ignoring.
08 May 15:08:53 INFO [geoserver.catalog] - Loaded feature type 'cdf:Seven'
{code}
--
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