-
Notifications
You must be signed in to change notification settings - Fork 91
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
'members' property is not working with AEM groups created via Default Sync Handler? #716
Comments
Colleagues, does anyone have any ideas on the issue description above? |
@Promathia Have you tried the approach as outlined in #694 (comment) / attached zip https://github.com/Netcentric/accesscontroltool/files/14917287/link-ims-groups-with-actool-example.zip ? you state the error |
Hi @ghenzler , thank you so much for addressing this, I'll try it today, seems like it should work, although I have a couple of doubts. But anyway, I'll try and let you know. Regards, |
Hello colleagues! after deploy to AEMaaCS I see the following picture (no configs were applied): The startup_hook error message looks like this: So seems like, due to runmode presence - image build phase was skipped. But in my initial message I stated, that both 2 phases produce errors. And this happens only when I add 'members' config for some groups. Could you please give any feedback? Maybe this was already given a thought or discussed? Regards, |
Prehistory:
AEMaaCS - latest version.
AC Tool - latest version.
In general AC Tool works fine and installs groups to AEMaaCS in 2 phases (as per docs).
Context (group names changed due to NDA):
We have a business group config in AC Tool .yaml script (for example):
This group has ACLs for some paths under '/content/...', '/conf/...' and '/etc/...'.
For that group we have one in Adobe IMS:
'IMS en-editors'
After "Apache Jackrabbit Oak Default Sync Handler" syncs groups to AEMaaCS Author service, we link those 2 groups together (for ACL inheritance), so 'IMS en-editors' is made a member of 'en-editors'.
Note: 'IMS en-editors' was not added to AC Tool. But it definitely exists on AEMaaCS Author service before a next build
When we change something in AC tool .yaml scripts - it recreates the groups (since the hash changed) and upon groups recreation - the linking above is missed ('IMS en-editors' is not member of 'en-editors' any more).
So to mitigate this we tried to add 'IMS en-editors' group to 'members' property of 'en-editors' in .yaml script.
As per documentation :
Updated group config example looks like this after the change:
Problem description:
Once 'members: IMS en-editors' added to config, AC Tool fails on both steps with the following errors:
Step startup_hook_image_build:
Step startup_hook:
Once I delete 'members: IMS en-editors' property from .yaml config - AC Tool successfully installs scripts in 2 phases again.
Question:
Can you please suggest, how can we maintain the linkage of the IMS and AEM groups while using AC Tool ('IMS en-editors' is a member of 'en-editors')?
Some ideas and notes:
Looking into code I could not find why it is not working, 'member'-s processing is pretty much straightforward
My assymption is that upon 'startup_hook_image_build' phase the composite node store is not connected, and the users/groups can not be seen at all, but still I can not understand why 'startup_hook' phase fails with an error as if it tries to write under apps/libs.
Just to proof 'IMS en-editors' group existence, if I run a simple groovy, it finds the group as expected and everything seems to be ok.
Regards,
Ivan
The text was updated successfully, but these errors were encountered: