[
https://issues.apache.org/jira/browse/OAK-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger updated OAK-2188:
----------------------------------
Attachment: OAK-2188.patch
As a preparation for the fix I had to change the test content to deny access to
/jcr:system for the everyone principal (thanks for the pointer Angela). This
also required changes in other areas. See attached patch. With the patch the
tests which try to manipulate labels and try to remove versions fail. This is
expected, because this first patch does not fix the problem described in this
issue.
[~anchela], could you please review the changes?
The main problem with the existing tests was reverting changes to access
control lists during the test. See AbstractEvaluationTest, where I changed
{{toClear}} into {{toRestore}}.
> Add/remove version label fails with restricted access on /jcr:system
> --------------------------------------------------------------------
>
> Key: OAK-2188
> URL: https://issues.apache.org/jira/browse/OAK-2188
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, jcr
> Affects Versions: 1.0.7, 1.1.1
> Reporter: Marcel Reutegger
> Assignee: Marcel Reutegger
> Fix For: 1.0.8, 1.1.2
>
> Attachments: OAK-2188.patch
>
>
> Some version operations rely on visibility of /jcr:system/jcr:versionStorage.
> This applies to add/remove label and remove version operations. The current
> implementation sets a well defined property on the jcr:versionStorage node. A
> commit hook picks up this change, removes the property again and performs the
> requested operation on the version store.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)