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:geoser...@lolhost: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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel