You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by si...@apache.org on 2019/07/19 13:08:34 UTC
[sling-org-apache-sling-feature-cpconverter] branch SLING-8586
created (now ecf96b0)
This is an automated email from the ASF dual-hosted git repository.
simonetripodi pushed a change to branch SLING-8586
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git.
at ecf96b0 SLING-8586 - [cp2fm] "create service user" repoinit instruction throws javax.jcr.nodetype.ConstraintViolationException
This branch includes the following new commits:
new ecf96b0 SLING-8586 - [cp2fm] "create service user" repoinit instruction throws javax.jcr.nodetype.ConstraintViolationException
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-org-apache-sling-feature-cpconverter] 01/01: SLING-8586 -
[cp2fm] "create service user" repoinit instruction throws
javax.jcr.nodetype.ConstraintViolationException
Posted by si...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
simonetripodi pushed a commit to branch SLING-8586
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git
commit ecf96b0e39c7637480132757e4c7c502f86b2327
Author: Simo Tripodi <st...@adobe.com>
AuthorDate: Fri Jul 19 15:02:09 2019 +0200
SLING-8586 - [cp2fm] "create service user" repoinit instruction throws
javax.jcr.nodetype.ConstraintViolationException
initial PoC
---
.../org/apache/sling/feature/cpconverter/acl/DefaultAclManager.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/java/org/apache/sling/feature/cpconverter/acl/DefaultAclManager.java b/src/main/java/org/apache/sling/feature/cpconverter/acl/DefaultAclManager.java
index f91f054..b30c4a1 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/acl/DefaultAclManager.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/acl/DefaultAclManager.java
@@ -112,6 +112,9 @@ public final class DefaultAclManager implements AclManager {
// system users
for (SystemUser systemUser : systemUsers) {
+ // TODO does it harm?!?
+ formatter.format("create path (rep:AuthorizableFolder) %s%n", systemUser.getPath());
+
// make sure all users are created first
formatter.format("create service user %s with path %s%n", systemUser.getId(), systemUser.getPath());