You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2014/06/03 11:14:01 UTC
[jira] [Created] (OAK-1872) Provide a way to hint property type
when posting json
Davide Giannella created OAK-1872:
-------------------------------------
Summary: Provide a way to hint property type when posting json
Key: OAK-1872
URL: https://issues.apache.org/jira/browse/OAK-1872
Project: Jackrabbit Oak
Issue Type: Improvement
Components: http
Reporter: Davide Giannella
Priority: Minor
When posting JSON stream through http-bindings for creating nodes it
fails with the exception that the node is missing the
{{jcr:primartyType}} even if posted.
This is because the Oak servlet treat it as {{String}} instead of
name. We have similar problems (not the exception) when trying to
create a {{Date}}.
It would be nice if it would be possible to hint a property type with
something like:
{code}
{ "jcr:primartyType" : "{Name}oak:Unstructured" }
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)