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

Ensure the index for rep:ACL is correctly detected #714

Open
ghenzler opened this issue May 16, 2024 · 0 comments
Open

Ensure the index for rep:ACL is correctly detected #714

ghenzler opened this issue May 16, 2024 · 0 comments

Comments

@ghenzler
Copy link
Member

ghenzler commented May 16, 2024

In AEMaaCS there is currently the issue that even though the oak index /oak:index/repACL-custom-1 is installed, QueryHelper [1] takes the wrong query for ACEs instead of ACLs, and for our case we are above the 100,000 query limit with that. [2] should really give access to /oak:index/repACL-custom-1, but session.nodeExists(OAK_INDEX_PATH_REP_ACL) returns false.

[1]

boolean indexForRepACLExists = session.nodeExists(OAK_INDEX_PATH_REP_ACL);
LOG.debug("Index for repACL exists: {}",indexForRepACLExists);
String queryForAClNodes = indexForRepACLExists ?
"SELECT * FROM [rep:ACL] WHERE ISDESCENDANTNODE([%s])" :
"SELECT ace.* FROM [rep:ACE] AS ace WHERE ace.[rep:principalName] IS NOT NULL AND ISDESCENDANTNODE(ace, [%s])";
LOG.debug("Query to obtain all ACLs: {}", queryForAClNodes);

[2]

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

1 participant