[Geoserver-devel] [jira] (GEOS-5387) JSON Rest Interface returns empty result for layergroup when containing exact 5 layers with default style

Christopher Dresel created BugGEOS-5387
JSON Rest Interface returns empty result for layergroup when containing exact 5 layers with default style

Issue Type:

BugBug

Affects Versions:

2.2, 2.1.4

Assignee:

Andrea Aime

Components:

REST

Created:

31/Oct/12 2:54 AM

Description:

When using JSON Rest Interface for layergroups which contains exact 5 layers with default styles an empty result is returned.

How to reproduce (with Demodata):

Layergroup spearfish contains 6 layers, which are all configured to use default style.

http:/127.0.0.1/geoserver/rest/layergroups/spearfish.json -> works (6 layers, 6 default styles)

Goto admin interface and remove one layer from layergroup.

http:/127.0.0.1/geoserver/rest/layergroups/spearfish.json -> doesn’t work (5 layers, 5 default styles)

Goto admin interface and uncheck one default style checkbox.

http:/127.0.0.1/geoserver/rest/layergroups/spearfish.json -> works (5 layers, 4 default styles)

Goto admin interface and delete unchecked layers.

http:/127.0.0.1/geoserver/rest/layergroups/spearfish.json -> works (4 layers, 4 default styles)

As you see, the bug only appears when using exact 5 layers with 5 default styles.

Environment:

Windows Server 2008, Apache Tomcat 7 (Service)

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Christopher Dresel

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)