David Winslow created GEOS-5057:
-----------------------------------
Summary: Name conflict resolution for new layers in REST API
Key: GEOS-5057
URL: https://jira.codehaus.org/browse/GEOS-5057
Project: GeoServer
Issue Type: Bug
Components: REST
Reporter: David Winslow
Assignee: Justin Deoliveira
The setup for this one is a little complicated:
1) Start from default "release" dataset
2) Add a shapefile named "roads" in the {{topp:}} namespace
3) Add a postgis datastore in the same namespace.
4) Repeatedly upload the roads shapefile to the postgis datastore.
This creates a table named "roads" in the database, but since the layer name "roads" is already taken we munge the name with a numeric suffix. However, instead of simply appending data to the existing layer, subsequent uploads add data to the same table, but create new layers with increasing numeric suffixes (up to a max of 9 in my testing; after that layer creation fails.)
Another odd bit I found during my testing was that the last upload only fails *after* importing the data into the table, so we end up with more copies of the data than we "successfully" imported.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira