[Geoserver-devel] [jira] Created: (GEOS-4626) Adding layer to layergroup: error when having other layers with the same name

Adding layer to layergroup: error when having other layers with the same name
-----------------------------------------------------------------------------

                 Key: GEOS-4626
                 URL: http://jira.codehaus.org/browse/GEOS-4626
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrés Maneiro
            Assignee: Andrea Aime

I'm creating a layer group containing 3 different layers. The layers are in different workspaces and also stores. But, their names are the same. Say they name "mylayer" and are in "store1", "store2" and "store3". Find below what I do when adding a layer to the group through the layergroup section in geoserver-admin panel:

- open the window to add layer and search it
- I got the 3 different options for mylayer (one for each store).
- I select mylayer in store2.

At this point, what I'd expect is that the group will add mylayer in store2. Instead, what happened was that the first layer (ordered by storename) was added, I mean, was added mylayer in store1.

I think should be possible to add a layer with the same name coming from different workspaces/stores, when those have different names.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira