[Geoserver-devel] [jira] (GEOS-5121) CatalogImpl allows to add multiple layers for a given ResourceInfo leaving the catalog in an inconsistent state

Gabriel Roldán created BugGEOS-5121
CatalogImpl allows to add multiple layers for a given ResourceInfo leaving the catalog in an inconsistent state

Issue Type:

BugBug

Affects Versions:

2.2-beta2

Assignee:

Gabriel Roldán

Attachments:

CatalogAddSaveLayer.patch

Components:

Configuration

Created:

21/May/12 11:11 AM

Description:

The attached patch fixes the issue of CatalogImpl allowing to add multiple LayerInfo for the same ResourceInfo, and fixes the test cases where such layers were being added with different names, hence changing the ResourceInfo name “under the hood”, as the ResourceInfo was not being saved. The test case worked with the default in memory catalog by accident, but leaves the catalog with multiple layers for the same resource named the same (as the last one added).

Fix Versions:

2.2-beta3

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Gabriel Roldán

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](http://www.atlassian.com/software/jira)