[Geoserver-devel] [jira] Created: (GEOS-3817) REST API using JSON output errors on default configuration

REST API using JSON output errors on default configuration
----------------------------------------------------------

                 Key: GEOS-3817
                 URL: http://jira.codehaus.org/browse/GEOS-3817
             Project: GeoServer
          Issue Type: Bug
          Components: REST
    Affects Versions: 2.0.x
            Reporter: David Winslow
            Assignee: Andrea Aime

It seems that requesting JSON for any object whose encoding would include a NaN value throws an uncaught error. An example of this is available using the GeoServer release dataset, with the restconfig extension enabled:

{{{
$ curl http://admin:geoserver@anonymised.com:8080/geoserver/rest/workspaces/nurc/coveragestores/mosaic/coverages/mosaic.json -D -
HTTP/1.1 200 OK
Date: Thu, 18 Feb 2010 20:23:08 GMT
Server: Noelios-Restlet-Engine/1.0..8
Content-Type: application/json
Content-Length: 0

}}}

The log shows an exception being thrown in Jettison; presumably a 500 should be shown to the REST client as well.

This coverage has InputImageThresholdValue set to NaN. If I set it to 0, the JSON output contains a JSON object as expected.

--
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