Skip to content

Updated sharepoint to make use of redirect 302 responses#68

Open
rechardp wants to merge 2 commits into
open-webui:mainfrom
rechardp:main
Open

Updated sharepoint to make use of redirect 302 responses#68
rechardp wants to merge 2 commits into
open-webui:mainfrom
rechardp:main

Conversation

@rechardp

Copy link
Copy Markdown

Found a bug


[owui-oikb-sharepoint-sync] 2026-06-30T09:01:21.396464165Z Redirect location: 'https://x.sharepoint.com/_layouts/15/download.aspx?UniqueId=xxxxx&ApiVersion=2.0'```

rechardp added 2 commits June 30, 2026 11:17
…es from SharePoint. This ensures that the content is retrieved correctly even if the file has been moved or renamed.
SwamiRama added a commit to SwamiRama/oikb that referenced this pull request Jul 9, 2026
SharePoint file downloads hit a 302 from the Graph /content endpoint to a
pre-signed download URL. The httpx client did not follow redirects, so
downloads failed with an unhandled 302. Enable follow_redirects on the
client; httpx drops the Authorization header on the cross-origin hop, which
is correct because the pre-signed URL carries its own token.

Upstream: issues open-webui#30 / open-webui#56, PRs open-webui#46 / open-webui#68.
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.

1 participant