[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to define system users within the ui.content module #706

Open
maciusio opened this issue May 18, 2021 · 3 comments
Open

Unable to define system users within the ui.content module #706

maciusio opened this issue May 18, 2021 · 3 comments

Comments

@maciusio
Copy link

Expected Behaviour

It's a common case that one wants to create a system user and deploy it to all the environments with a package.

I should be able to define system users in the ui.content module.

Actual Behaviour

After adding nodes containing system users, the build fails with errors

Reproduce Scenario (including but not limited to)

Generate project with the latest archetype e.g:
mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=27 -D aemVersion=6.5.7 -D appTitle='my app' -D appId=platform -D groupId=my.app -D includeExamples=n

Inside the ui.content package add a system user node e.g.

<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:SystemUser"
jcr:uuid="2018c732-1e79-3c1e-88b3-de3ce2ceee41"
rep:authorizableId="dam-writer-service"
rep:principalName="dam-writer-service"/>

Logs taken while reproducing problem

[ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'rep:authorizableId' [String] is not allowed in node with types [rep:SystemUser]: Property is protected!", filePath=jcr_root/home/users/system//.content.xml, nodePath=/home/users/system/, line=6, column=42
[ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'rep:principalName' [String] is not allowed in node with types [rep:SystemUser]: Property is protected!", filePath=jcr_root/home/users/system//.content.xml, nodePath=/home/users/system/, line=6, column=42

@venky1311
Copy link

Getting the similar issue, any solution ?

@agankitgupta1
Copy link

Any Solution?

@ankit2-gupta
Copy link

I got the solution.

Remove the version of filevault-package-maven-plugin mentioned in pom.xml or update it to the latest one. In my case, I removed 1.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants