[
https://issues.apache.org/jira/browse/SLING-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14223000#comment-14223000
]
Ashu Gupta commented on SLING-4193:
-----------------------------------
Update: Other Suffixes like @Patch etc are also not working for Import
Operation.
> Cannot set Property type in import operation using @TypeHint suffix
> -------------------------------------------------------------------
>
> 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 @TypeHint suffix.
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)