[Geoserver-devel] [jira] (GEOS-5822) WMS Capabilities for 1.1.1 and 1.3.0 don't list same layer groups

Jesse Eichar created BugGEOS-5822
WMS Capabilities for 1.1.1 and 1.3.0 don’t list same layer groups

Issue Type:

BugBug

Affects Versions:

2.3.2, 2.3.1, 2.3.0

Assignee:

Andrea Aime

Components:

WMS

Created:

23/May/13 1:07 AM

Description:

For 1.1.1 the capabilities list all layergroups. For 1.3.0 only the layergroups that have all the layers in the current workspace are listed.

The reason is that 1.1.1 uses getLayerGroups() and 1.3.0 uses list(LayerGroups.class, filter)

The security filters applied when calling list have an extension filter (LocalWorkspaceCatalogFilter) which detects if there is a localworkspace in the thread local and if so then filters all layers not in that workspace. That includes layergroups containing layers that are not in the workspace (because the security filters check the security permissions on each layer in the layergroup).

I have 2 pull requests that provide fixes for this issue. I will explain them in comments and you (geoserver team) can choose one (or both) to apply.

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Jesse Eichar

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)