Prashanth Kayampady created SLING-4251:
------------------------------------------

             Summary: 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


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
(v6.3.4#6332)

Reply via email to