[
https://issues.apache.org/jira/browse/SLING-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashu Gupta updated SLING-4193:
------------------------------
Description:
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. How can I accomplish this?
was:
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?
> 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 @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. How can I accomplish this?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)