You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/12/16 13:26:58 UTC
[jira] [Resolved] (JCR-4085) DavEx json should always add type
information for Doubles
[ https://issues.apache.org/jira/browse/JCR-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke resolved JCR-4085.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.13.7
2.14
> DavEx json should always add type information for Doubles
> ---------------------------------------------------------
>
> Key: JCR-4085
> URL: https://issues.apache.org/jira/browse/JCR-4085
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-server
> Affects Versions: 2.12.6
> Reporter: Alexander Klimetschek
> Assignee: Julian Reschke
> Fix For: 2.14, 2.13.7
>
>
> In JSON, there is only a single numeric type which can be both integer and floating point. A floating point with a ".0" decimal will look like an integer, e.g. "5.0" => "5", serialized or interpreted as such by parsers.
> Hence to correctly keep the type information for davex clients, the type information in the separate ":<prop>" property should always be included for double jcr properties, in [JsonWriter.requiresTypeInfo()|https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/remoting/davex/JsonWriter.java#L221-L236].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)