[Geoserver-devel] [jira] (GEOS-5238) VirtualWorkspace GetMap requests fail to match global layer groups and may match wrong layers

Gabriel Roldán created BugGEOS-5238
VirtualWorkspace GetMap requests fail to match global layer groups and may match wrong layers

Issue Type:

BugBug

Affects Versions:

2.2-RC1

Assignee:

Gabriel Roldán

Components:

WMS

Created:

26/Jul/12 11:04 AM

Description:

Having LayerGroups: global, sde:local, cite:local
and LayerInfos: tiger:poi, cite:poi

  • A GetMap request to the cite local workspace WMS, asking for the tiger:poi layer, an image of the cite:poi layer is returned. (e.g. /geoserver/cite/wms?LAYERS=tiger:poi&... should fail, but instead it matches cite:poi ).
  • A GetMap request to the cite local workspace WMS, asking for the sde:local layer group, an image of the cite:local layer group is returned. (e.g. /geoserver/cite/wms?LAYERS=sde:local&... should fail, but instead it matches cite:local ).
  • A GetMap request to a local workspace WMS asking for a “global” layer group (i.e. a layer group with no WorkspaceInfo) should succeed (e.g. /geoserver/cite/wms?LAYERS=global&...), but instead a ServiceException stating “Could not find layer cite:global” is returned.

The bug seems to be due to WMSWorkspaceQualifier being lose about qualifying already qualified layer names and not matching layer group names correctly.

Patch and test cases to come.

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)