You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2016/12/14 20:09:58 UTC

[jira] [Issue Comment Deleted] (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 ]

Justin Edelson updated JCR-4085:
--------------------------------
    Comment: was deleted

(was: pull request: https://github.com/apache/jackrabbit/pull/50)

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