fix: skip SharePointHomeCacheList during SharePoint Online sync - #4306
Merged
Jan-Kazlouski-elastic merged 2 commits intoJul 30, 2026
Conversation
Graph can return this system list; fetching its attachments via REST returns Unauthorized and aborts the whole sync. Skip it by name before any list/item REST follow-ups. Relates to elastic/sdh-search#1940
Jan-Kazlouski-elastic
enabled auto-merge (squash)
July 30, 2026 12:44
Jan-Kazlouski-elastic
deleted the
fix/1940-skip-sharepoint-home-cache-list
branch
July 30, 2026 13:09
This was referenced Jul 30, 2026
💔 Failed to create backport PR(s)
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 30, 2026
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 30, 2026
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 30, 2026
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 30, 2026
#4306) (#4310) Backports the following commits to 8.19: - fix: skip SharePointHomeCacheList during SharePoint Online sync (#4306) > **Manual backport.** The auto-backport could not cherry-pick cleanly because on > `8.19` the SharePoint Online source is still the monolithic > `connectors/sources/sharepoint_online.py` rather than the refactored > `sharepoint/sharepoint_online/` package used on `main`/`9.x`. The change itself > is identical (same skip-by-name logic and tests). ## Related Pull Requests * #4306 — original PR (merged to `main`) * #4307 — `[9.4]` backport * #4308 — `[9.5]` backport * #4309 — `[9.3]` backport Made with [Cursor](https://cursor.com)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of https://github.com/elastic/sdh-search/issues/1940
Skip the system list
SharePointHomeCacheListby name during SharePoint Online sync. Graph can return this list; fetching its attachments via SharePoint REST returns Unauthorized and aborts the whole sync. Sync-rule exclusions cannot prevent this because they apply after fetch. This change skips the list early insite_lists()before DLS/item/attachment REST follow-ups.Checklists
Pre-Review Checklist
config.yml.example)v7.13.2,v7.14.0,v8.0.0)Changes Requiring Extra Attention
Related Pull Requests
Release Note
SharePoint Online connector now skips the system list SharePointHomeCacheList so syncs are not aborted by Unauthorized responses when fetching its attachments.
Made with Cursor