[
https://issues.apache.org/jira/browse/SLING-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-2801.
-------------------------------------
Resolution: Won't Fix
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)