[ 
https://issues.apache.org/jira/browse/SLING-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-4193.
-------------------------------------
    Resolution: Won't Fix

> 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
>          Components: Servlets
>            Reporter: Ashu Gupta
>            Priority: Major
>
> 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
(v8.20.10#820010)

Reply via email to