On a fresh geoserver install - with Jetty, manual startup.
-
Log in to the web console.
-
Create a group layer.
-
Add a bunch of layers to the recently created group layer.
-
Make sure that at least one of the layers added to the group is non queryable. To ensure so, open the layer, go to the Publishing tab and under the WMS Settings section uncheck the 'queryable' checkbox.
-
Finally, send a GetFeatureInfo query using the group layer as the single value for the QUERY_LAYERS parameter. Tested using the OpenLayers map viewer available in the Layer Preview page.
The following in an example of the error produced, being 'topp:tasmania_state_boundaries' a non queryable layer inside the group requested:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://pmpwvinet07.tcsa.local:8087/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException code="OperationNotSupported" locator="QUERY_LAYERS"> Layer topp:tasmania_state_boundaries is not queryable </ServiceException></ServiceExceptionReport>
The desired behaviour would be having the results related only to queryable layers. That would require Geoserver being able to handle non queryable layers by ignoring them, instead of throwing an error.
|