You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2018/11/11 09:43:00 UTC

[jira] [Resolved] (SLING-2801) Sling GET servlet fails to export JSON when property contains a Double.NaN value

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