You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timothee Maret (JIRA)" <ji...@apache.org> on 2017/06/07 15:37:18 UTC

[jira] [Updated] (SLING-6942) DistributionUtils#getResourceResolver should use the user session

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

Timothee Maret updated SLING-6942:
----------------------------------
    Attachment: SLING-6942.patch

The cause seems to be that {{ResourceResolverFactory#getServiceResourceResolver}} rightfully (per API [0]) does not honour the {{user.jcr.session}} parameter.

Attaching a patch to solve the issue.

[0] https://github.com/apache/sling/blob/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java#L162-L189

> DistributionUtils#getResourceResolver should use the user session
> -----------------------------------------------------------------
>
>                 Key: SLING-6942
>                 URL: https://issues.apache.org/jira/browse/SLING-6942
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Core 0.1.12
>            Reporter: Timothee Maret
>         Attachments: SLING-6942.patch
>
>
> According to SLING-5281, the resource resolver should use the user session when no subservice user is configured. Currently, this is not the case. See also SLING-6939.
> cc [~teofili]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)