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

/var/acs-commons/on-deploy-scripts-status never gets created #2046

Closed
3 tasks done
Ronald-Diemicke opened this issue Sep 18, 2019 · 6 comments
Closed
3 tasks done

/var/acs-commons/on-deploy-scripts-status never gets created #2046

Ronald-Diemicke opened this issue Sep 18, 2019 · 6 comments
Labels

Comments

@Ronald-Diemicke
Copy link

Ronald-Diemicke commented Sep 18, 2019

Required Information

  • AEM Version, including Service Packs, Cumulative Fix Packs, etc: 6.5.1
  • ACS AEM Commons Version: 4.3.2
  • Reproducible on Latest? yes

Expected Behavior

I would expect that installing the ACS commons package would create the /var/acs-commons/on-deploy-scripts-status folder and that acs-commons-on-deploy-scripts-service
user would have access to it.

Actual Behavior

The /var/acs-commons/on-deploy-scripts-status folder group doesn't get created.
acs-commons-on-deploy-scripts-service user does not get rights setup for it.

Steps to Reproduce

Install AEM 6.5.
Install Service Pack 1
Install ACS Commons 4.3.2

@ahmed-musallam
Copy link
Contributor

I can confirm this.

the filter does not include it see:

@kwin
Copy link
Contributor

kwin commented Sep 18, 2019

I think this is a duplicate of #2044.

@ahmed-musallam
Copy link
Contributor

ahmed-musallam commented Sep 18, 2019

yes, the report in #2044 does log the errors:

ERROR] ValidationViolation: "Node /var/acs-commons/on-deploy-scripts-status/rep:policy is not contained in any of the filter rules", filePath=jcr_root/var/acs-commons/on-deploy-scripts-status/_rep_policy.xml, nodePath=/var/acs-commons/on-deploy-scripts-status/rep:policy, line=3
[ERROR] ValidationViolation: "Node /var/acs-commons/on-deploy-scripts-status/rep:policy/allow is not contained in any of the filter rules", filePath=jcr_root/var/acs-commons/on-deploy-scripts-status/_rep_policy.xml, nodePath=/var/acs-commons/on-deploy-scripts-status/rep:policy/allow, line=7
[ERROR] ValidationViolation: "Node /var/acs-commons/on-deploy-scripts-status/README.txt is not contained in any of the filter rules", filePath=jcr_root/var/acs-commons/on-deploy-scripts-status/README.txt, nodePath=/var/acs-commons/on-deploy-scripts-status/README.txt
[ERROR] ValidationViolation: "Node /var/acs-commons/on-deploy-scripts-status is not contained in any of the filter rules", filePath=jcr_root/var/acs-commons/on-deploy-scripts-status/.content.xml, nodePath=/var/acs-commons/on-deploy-scripts-status, line=4

If the plan is to fix them all together, then yes that is a duplicate.

But I'd keep this issue because it directly impacts the on deploy script functionality. And fixing this takes priority and is faster than fixing everything in #2044

@Ronald-Diemicke
Copy link
Author

Ronald-Diemicke commented Sep 18, 2019

@kwin - you're right - this is a duplicate of #2044 - I didn't realize that this was part of that issue until you pointed it out, but @ahmed-musallam has a point that on-deploy is dead in the water until this is fixed.

I took a stab initially - but I saw you had a more comprehensive fix - what you have encompasses what I had, and then some, so I opened #2047 and credited you. This should fix this issue.

EDIT: I'd add that if #2045 is going to be merged soon, I'm happy to close #2047 and this issue.

@ahmed-musallam
Copy link
Contributor

ahmed-musallam commented Sep 20, 2019

For others facing this issue here is a temporary fix:

add this folder to your project (don't forget the _rep_policy.xml file )
https://github.com/Adobe-Consulting-Services/acs-aem-commons/tree/e3be724e64d084c66e169efefcccc28d0f175d2a/ui.content/src/main/content/jcr_root/home/users/system/acs-commons/on-deploy-scripts-service

then in your filter.xml add:

    <filter root="/var/acs-commons" mode="merge"/>

this will fix it.

Make sure this is included in the same package that installs your bundle! (typically ui.apps)

@stale
Copy link

stale bot commented Nov 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 20, 2019
@stale stale bot closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants