You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/08/03 05:02:00 UTC

[jira] [Resolved] (SLING-4251) Sling post Servlet not changing the array type after the second JSON import.

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