michaelmarth opened a new pull request, #2759:
URL: https://github.com/apache/jackrabbit-oak/pull/2759

   ## Summary
   - Fixes handling of membershipNestingDepth <= 0 in DynamicSyncContext
   - When depth is 0, disables group membership lookup from IDP
   - Properly migrates from regular to dynamic membership tracking
   
   ## Changes
   - Added early return in syncMembership() when depth <= 0
   - Sets REP_EXTERNAL_PRINCIPAL_NAMES to empty array (no groups)
   - Clears existing stored membership information when migrating
   - Fixed order of operations to check cleanup needs before setting properties
   
   ## Test Changes
   - Updated test expectations for depth=0 scenarios in DynamicGroupsTest
   - testCrossIDPMembership: verifies no group membership when depth=0
   - testSyncMembershipWithChangedExistingGroups: verifies proper migration
   
   ## Test Results
   - All 156 DynamicGroupsTest tests pass
   - All 1547 oak-auth-external tests pass
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to