[ 
https://issues.apache.org/jira/browse/SLING-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224294#comment-14224294
 ] 

Felix Meschberger commented on SLING-4193:
------------------------------------------

I have the impression that none of the @ suffixes really work and are supported 
in the import operation. Also the 
[doc|http://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html]
 lists the @ suffixes with content creation and update operations only.

Hence, there is no chance of ever implementing that here.

Rather the :import operation, IIRC, leverage the content importer mechanism 
documented 
[here|http://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html]

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

Reply via email to