Skip to content

fix(test): update ACL browse e2e for ancestor-listing fallback#1087

Merged
kptdobe merged 1 commit into
mainfrom
aclanc
Jul 9, 2026
Merged

fix(test): update ACL browse e2e for ancestor-listing fallback#1087
kptdobe merged 1 commit into
mainfrom
aclanc

Conversation

@kptdobe

@kptdobe kptdobe commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • fix(list): allow listing an ancestor folder when permission is only on a descendant da-admin#299 changed list-permission semantics: a folder with no direct grant but a permitted descendant now lists successfully (filtered), instead of returning 403.
  • Updated acl_browse.spec.js test formerly named "No access directory should not show anything" to assert the new filtered listing on testdocs (visible: readwrite-doc, readonly-doc, subdir, dir-readwrite, dir-readonly; hidden: noaccess-doc).
  • Added a new test using a sibling path (otherdir) with zero ACL grants anywhere in its subtree, to keep coverage of the true 403 "no permission at all" case.
  • Documented the otherdir fixture assumption in auth.setup.js. Verified against the live da-testautomation ACL config — no rule matches it, no config change needed.

Test plan

  • CI Playwright run against da-status passes acl_browse.spec.js
  • Confirm Ancestor directory shows only permitted descendants shows filtered items on testdocs
  • Confirm No access directory should not show anything still 403s on otherdir

adobe/da-admin#299 lets a folder with no direct grant but a permitted
descendant list successfully (filtered), instead of 403. Update the
acl_browse test to expect the filtered listing on testdocs, and add a
sibling no-permission path (otherdir) to keep true-403 coverage.
@aem-code-sync

aem-code-sync Bot commented Jul 9, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@kptdobe kptdobe requested a review from bosschaert July 9, 2026 12:52
@kptdobe kptdobe merged commit e84ffd9 into main Jul 9, 2026
4 of 5 checks passed
@kptdobe kptdobe deleted the aclanc branch July 9, 2026 13:47
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

Successfully merging this pull request may close these issues.

2 participants