You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ashu Gupta (JIRA)" <ji...@apache.org> on 2014/11/24 14:48:12 UTC

[jira] [Created] (SLING-4193) Cannot set Property type in import operation

Ashu Gupta created SLING-4193:
---------------------------------

             Summary: Cannot set Property type in import operation
                 Key: SLING-4193
                 URL: https://issues.apache.org/jira/browse/SLING-4193
             Project: Sling
          Issue Type: Bug
            Reporter: Ashu Gupta


In import operation, unable to set property type using TypeHints.

Scenario:
Try to import content structure using sling using the method described in the documentation as follows:
curl -F":operation=import" -F":contentType=json"
   -F":content={ 'sample' : {'propOne' : 'propOneValue', 'propOne@TypeHint': 'Date','childOne' : { 'childPropOne' : true } } }" \    
   http://host/content

but in the result I get a new String property as follows:
propOne@TypeHint           String              Date
instead of setting the property as Date. How can I accomplish this?





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)