A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Problem: When my customer sets a page to expired and that page has files in the pagefiles folder an access error occours:
You are not authorized to access /PageFiles/26664/file.png
Code:
IClient client = SearchClient.Instance;
FilesResult result = client.Search<UnifiedFile>()
.FilterOnReadAccess()
.For(query)
.Skip(skip)
.Take(take)
.GetFilesResult();
Find not taking care of expired pages automaticly? Is there anything i could do in the search or could i somehow catch an "expired event" and remove the page/pagefiles from the index?