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

GetAllUniqueRoleAssignments caching data key #472

Open
bezua opened this issue Sep 27, 2021 · 0 comments
Open

GetAllUniqueRoleAssignments caching data key #472

bezua opened this issue Sep 27, 2021 · 0 comments

Comments

@bezua
Copy link

bezua commented Sep 27, 2021

Dear community,

It looks to me that there is a defect in GetAllUniqueRoleAssignments extension, preceisly EnsureGroupCache.
The cache key is groupLoginName which is unique for one site, but ambigious when working with many sites at once.

In SharePoint sites we can have sharepoint groups. Different sites can have same group name, but each contains different set of memebers.

The problem appears when crawling multpile sites with GetAllUniqueRoleAssignments. Since cache behind is a static dictionary, it remembers all processed site data from the beginning.
During crawling, when running GetAllUniqueRoleAssignments for a site where sharepoint groups are duplicated, you get old data from dictionary.

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