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

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

> Sling post Servlet not changing the array type after the second JSON import.
> ----------------------------------------------------------------------------
>
>                 Key: SLING-4251
>                 URL: https://issues.apache.org/jira/browse/SLING-4251
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Slingstart Maven Plugin 1.0.2
>         Environment: Windows 7
>            Reporter: Prashanth Kayampady
>            Priority: Major
>
> Make a REST call to sling post servlet using the following form data
> :operation =  import
> :replace = true
> :contentType = json
> :name = <'testnode' to be created under /content>
> :content = { "jcr:primaryType": "nt:unstructured", "propertyArray": [true, 
> false] }
> A new "testnode" gets created after the first call. A property of type 
> Boolean[] also gets created.
> Make another Rest call by just changing the ":content" to as shown below.
> :content = { "jcr:primaryType": "nt:unstructured", "propertyArray": 
> ["strvalue1", ""strvalue2"] }
> Now the type of the propertyArray is still shown as Boolean[], but the values 
> are of type String. Sling is not changing the property type to String[].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to