GWCTransactionListener breaks transaction processing for deletes over non qualified feature types
-------------------------------------------------------------------------------------------------
Key: GEOS-4431
URL: http://jira.codehaus.org/browse/GEOS-4431
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.1-RC2
Reporter: Andrea Aime
Assignee: Gabriel Roldán
Priority: Critical
Fix For: 2.1.0
GeoServer is normally able to process a transaction over a non qualified layer, but GWCTransactionListener throws an exception and makes the whole operation fail:
java.util.NoSuchElementException: Layer not found: pgstates
at org.geoserver.gwc.GWCTransactionListener.getQualifiedLayerName(GWCTransactionListener.java:283)
at org.geoserver.gwc.GWCTransactionListener.findAffectedCachedLayers(GWCTransactionListener.java:251)
at org.geoserver.gwc.GWCTransactionListener.dataStoreChangeInternal(GWCTransactionListener.java:201)
at org.geoserver.gwc.GWCTransactionListener.dataStoreChange(GWCTransactionListener.java:175)
at org.geoserver.wfs.Transaction$TransactionListenerMux.dataStoreChange(Transaction.java:623)
at org.geoserver.wfs.Transaction$TransactionListenerMux.dataStoreChange(Transaction.java:629)
the transaction being run against the states layer imported in postgis:
{code}
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Delete typeName="pgstates">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:FeatureId fid="pgstates.15"/>
</ogc:Filter>
</wfs:Delete>
</wfs:Transaction>
{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