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

Nicolas Peltier updated SLING-4362:
-----------------------------------
    Description: 
when setting resource resolver type to 
ResourceResolverType.JCR_MOCK 

such loaded json 
{Code}
{
  "jcr:primaryType":"nt:unstructured",
  "thisIs":"root",
  "foo":{
    "jcr:primaryType":"nt:unstructured",
    "sling:resourceType": "fooType",
    "thisIs": "child"
  }
}
{Code}
to /content
gives /content/foo a resourceType == "nt:unstructured" instead of fooType, 
other properties (here thisIs) are correctly loaded

  was:
when setting resource resolver type to 
ResourceResolverType.JCR_MOCK 

such loaded json 
{Code}
{
  "jcr:primaryType":"nt:unstructured",
  "thisIs":"root",
  "foo":{
    "jcr:primaryType":"nt:unstructured",
    "sling:resourceType": "fooType",
    "thisIs": "child"
  }
}
{Code}
to /content
gives /content/foo a resourceType == "nt:unstructured" instead of fooType


> [jcr mocks] Resource type not correctly loaded when using jcr mock
> ------------------------------------------------------------------
>
>                 Key: SLING-4362
>                 URL: https://issues.apache.org/jira/browse/SLING-4362
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing JCR Mock 1.1.2
>            Reporter: Nicolas Peltier
>
> when setting resource resolver type to 
> ResourceResolverType.JCR_MOCK 
> such loaded json 
> {Code}
> {
>   "jcr:primaryType":"nt:unstructured",
>   "thisIs":"root",
>   "foo":{
>     "jcr:primaryType":"nt:unstructured",
>     "sling:resourceType": "fooType",
>     "thisIs": "child"
>   }
> }
> {Code}
> to /content
> gives /content/foo a resourceType == "nt:unstructured" instead of fooType, 
> other properties (here thisIs) are correctly loaded



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to