GetFeatureInfo error for requests with both queryable and non-queryable layers

Description

WMS GetFeatureInfo requests are allowed to contain non-queryable layers and layer groups as long as there is at least one queryable layer in the request. However, the code in org.geoserver.wms.map.GetMapKvpRequestReader that is filtering the non-queryable layers and layer groups from the request only removes the layers and not their corresponding styles and cql_filter or filter. This can cause the styles and filters to be assigned to the wrong layer which can cause incorrect output or errors, such as "The requested Style can not be used with this layer.".

Environment

None

Activity

Steve Ikeoka 
May 11, 2017 at 5:27 PM

Steve Ikeoka 
May 10, 2017 at 5:37 PM

FYI, this was closed with the fix version 2.11.1 but the actual commit hasn't been backported from master.

Steve Ikeoka 
April 14, 2017 at 9:48 PM

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created April 14, 2017 at 3:00 PM
Updated November 15, 2021 at 10:09 AM
Resolved May 2, 2017 at 4:01 PM