wfs transactions with namespace declaration on a child element trigger
IllegalStateException
--------------------------------------------------------------------------------------------
Key: GEOT-1463
URL: http://jira.codehaus.org/browse/GEOT-1463
Project: GeoTools
Issue Type: Bug
Components: core xml
Environment: http post request to GeoServer
Reporter: Tim Schaub
Requests with namespace declarations nested in the transaction get the
following service exception:
java.lang.IllegalStateException: can't declare any more prefixes in this context
Running the following triggers the response:
curl -H 'Content-type: text/xml' -d '<wfs:Transaction
xmlns:wfs="http://www.opengis.net/wfs" version="1.0.0" service="WFSV"
handle="tweaking a restricted area"><wfs:Update
typeName="topp:restricted"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:MultiPolygon
xmlns:gml="http://www.opengis.net/gml"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">598239.59422707,4917334.78591833
600352.3393316603,4917580.825533601 599657.47540894,4916247.27752886
598255.01958824,4916224.77709862
598239.59422707,4917334.78591833</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></wfs:Value></wfs:Property><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId
fid="restricted.3"/></ogc:Filter></wfs:Update></wfs:Transaction>'
http://geo.openplans.org/geoserver/wfsv
While the following results in a successful transaction:
curl -H 'Content-type: text/xml' -d '<wfs:Transaction
xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" service="WFSV"
handle="tweaking a restricted area"><wfs:Update
typeName="topp:restricted"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">598239.59422707,4917334.78591833
600352.3393316603,4917580.825533601 599657.47540894,4916247.27752886
598255.01958824,4916224.77709862
598239.59422707,4917334.78591833</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></wfs:Value></wfs:Property><ogc:Filter><ogc:FeatureId
fid="restricted.3"/></ogc:Filter></wfs:Update></wfs:Transaction>'
http://geo.openplans.org/geoserver/wfsv
(The difference in the above two requests is that the second, successful one
has all xmlns attributes on the root element.)
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel