Details
Description
The links created on the main "Layer" page in the UI do not include the workspace prefixes. Due to this we experienced issues with having different layers with the same name but in different workspaces. Each of the links will open the same layer (in our case the alphabetically first workspace, but that could be coincidence).
To reproduce:
Create two workspaces and a layer in each using the same name, e.g. one:myLayer and two:myLayer. Go to the "Layer" page from the menu and click on both links. They will both link to ".../geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.data.resource.ResourceConfigurationPage&name=myLayer". They should link to "...&name=one:myLayer" and "....&two:myLayer".
Workaround:
Hack the URL to include the workspace prefix for the layer.
I just noticed that deleting a layer seems to delete all layers of the same name, too. In the example deleting either "one:myLayer" or "two:myLayer" will delete both.