Tobias Bocanegra created SLING-2801:
---------------------------------------
Summary: Sling GET servlet fails to export JSON when property
contains a Double.NaN value
Key: SLING-2801
URL: https://issues.apache.org/jira/browse/SLING-2801
Project: Sling
Issue Type: Bug
Components: Servlets
Affects Versions: Servlets Get 2.1.4
Reporter: Tobias Bocanegra
Priority: Minor
exporting a JSON of a node that contains a Double.NaN value returns a 500:
JSON does not allow non-finite numbers
Cannot serve request to /metadata.json in
org.apache.sling.servlets.get.DefaultGetServlet
Exception:
org.apache.sling.commons.json.JSONException: JSON does not allow non-finite
numbers
at
org.apache.sling.commons.json.JSONObject.testValidity(JSONObject.java:997)
at org.apache.sling.commons.json.JSONObject.put(JSONObject.java:885)
at
org.apache.sling.servlets.get.impl.helpers.JsonObjectCreator.createProperty(JsonObjectCreator.java:199)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira