You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2025/11/06 20:39:00 UTC
[jira] [Resolved] (SLING-12992) MockUserManager is interpreting the intermediatePath argument incorrectly when creating users and groups
[ https://issues.apache.org/jira/browse/SLING-12992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman resolved SLING-12992.
---------------------------------
Resolution: Fixed
Merged PR at: [{{0a6b419}}|https://github.com/apache/sling-org-apache-sling-testing-jcr-mock/commit/0a6b419999e9345c2c832d66b2461bef188b7111]
> MockUserManager is interpreting the intermediatePath argument incorrectly when creating users and groups
> --------------------------------------------------------------------------------------------------------
>
> Key: SLING-12992
> URL: https://issues.apache.org/jira/browse/SLING-12992
> Project: Sling
> Issue Type: Bug
> Reporter: Eric Norman
> Assignee: Eric Norman
> Priority: Major
> Fix For: Testing JCR Mock 1.7.0
>
>
> The current MockUserManager implementation is interpreting the intermediatePath argument when creating a user or group as an absolute path.
> The real oak/jackrabbit implementation is interpreting that argument as a relative path that is appended to the configured usersPath or groupsPath location.
> Expected: the MockUserManager should behave more like the real implementation.
> Also, for MockUserManager#createSystemUser implementation, the intermediatePath value should have additional validation to ensure the value starts with "system".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)