mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #121] [MERGED] fix(sharepoint): percent-encode item paths in Graph URLs #120
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/oikb/pull/121
Author: @a-nych
Created: 9/16/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @tjbck
Base:
main← Head:fix/sharepoint-graph-path-encoding📝 Commits (1)
913d20afix(sharepoint): percent-encode item paths in Graph URLs📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
src/oikb/connectors/sharepoint.py(+3 -2)📄 Description
The SharePoint connector interpolates item names straight into Graph's
/root:/{path}:addressing form, without percent-encoding:A name containing
#ends the URL path at the fragment marker. Walking a library whose first folder is#Archiwum lub do przerobieniatherefore asks Graph for:and the whole sync aborts on
raise_for_status().?truncates the same way, and a literal%in a name can turn into an unintended escape.read_filehas the identical flaw, so even libraries that enumerate cleanly can fail at download time.Encoding with
quote()(defaultsafe="/") leaves the path separators structural and escapes everything else.Verified against a live SharePoint library of 317 files: before, the walk dies on the first
#folder; after, the full manifest builds and files inside that folder download correctly.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.