wfs insert fails when you have a dataset which has names that clash with the gml abstract feature type
------------------------------------------------------------------------------------------------------
Key: GEOS-1331
URL: http://jira.codehaus.org/browse/GEOS-1331
Project: GeoServer
Issue Type: Bug
Components: WFS
Reporter: Justin Deoliveira
Assignee: Justin Deoliveira
Fix For: 1.6.0-beta3
A table like:
Column | Type | Modifiers
----------+----------------------+---------------------------------------------------------
gid | integer | not null default nextval('jp_points_gid_seq'::regclass)
number | bigint |
name | character varying(9) |
the_geom | geometry |
results in:
java.lang.IllegalArgumentException: Duplicate AttributeTypes DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=0, max=0]
at org.geotools.feature.FeatureTypeBuilder.check(FeatureTypeBuilder.java:607)
at org.geotools.feature.FeatureTypeBuilder.addType(FeatureTypeBuilder.java:354)
at org.geotools.gml2.bindings.GML2ParsingUtils.featureType(GML2ParsingUtils.java:212)
at org.geotools.gml2.bindings.GML2ParsingUtils.parseFeature(GML2ParsingUtils.java:84)
at org.geotools.gml2.bindings.GMLAbstractFeatureTypeBinding.parse(GMLAbstractFeatureTypeBinding.java:99)
at org.geoserver.wfs.xml.v1_0_0.GMLAbstractFeatureTypeBinding.parse(GMLAbstractFeatureTypeBinding.java:71)
at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:133)
--
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