Disable layer when REST upload contains layer that cannot be completely configured
----------------------------------------------------------------------------------
Key: GEOS-4297
URL: http://jira.codehaus.org/browse/GEOS-4297
Project: GeoServer
Issue Type: Improvement
Affects Versions: 2.1-beta3
Reporter: David Winslow
Assignee: Andrea Aime
Fix For: 2.1-RC1
Attachments: dont_break_wms_via_rest.diff
As discussed on the mailing list, this patch would change the behavior of the RESTConfig file upload endpoint. The current behavior is, after an upload whose configuration cannot be completed (for example, the native projection and therefore the lat/long bounding box cannot be determined) the layer is left in the catalog, warts and all. The erroneous data doesn't cause an error at upload time, but the next WMS GetCapabilities request will throw an exception due to the null fields.
With this proposed change, the layer would simply have the 'enabled' bit set to false so that uploaders can switch it to false at the same time they complete the configuration (either via rest or through the web interface).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira