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

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

> Sling persistence API ignores jcr:createdBy property when creating JCR node
> ---------------------------------------------------------------------------
>
>                 Key: SLING-3943
>                 URL: https://issues.apache.org/jira/browse/SLING-3943
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>            Reporter: Joel Richard
>            Priority: Major
>
> I have the following code:
> {code}
>                             Resource channelFolder = 
> ResourceUtil.getOrCreateResource(resolver, socket.getNamespace().getName(), 
> "sling:OrderedFolder", "sling:Folder", false);
>                             Map<String, Object> props = new HashMap<String, 
> Object>();
>                             props.put("jcr:primaryType", "nt:unstructured");
>                             props.put("jcr:description", msg);
>                             props.put("jcr:createdBy", user);
>                             resolver.create(channelFolder, 
> System.currentTimeMillis() + "-" + user, props);
>                             resolver.commit();
> {code}
> For whatever reason, the jcr:createdBy property isn't persisted. If I use the 
> JCR API instead, the jcr:createdBy property is saved.
> We use the sling resource resolver in version 1.1.1-R1618115.



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

Reply via email to