mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #70] Bug in GDrive Connector: Subfolders not synced #48
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#48
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?
Originally created by @MoeLa on GitHub (Jun 30, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/70
Description
The Google Drive connector only syncs files from the root folder. All subfolders and their contents are ignored. Additionally, if a previous sync had already ingested files from subfolders (e.g. via manual upload), a subsequent connector sync deletes those entries from the Knowledge Base, because the manifest no longer contains them.
Root Cause
application/vnd.google-apps.folderis listed in_SKIP_MIMES, which causes the earlycontinuein_walk_folderto fire before the recursive branch is ever reached:The recursive subfolder handling is effectively dead code.
Fix
Remove
application/vnd.google-apps.folderfrom_SKIP_MIMESso the dedicated recursion branch is reached:Steps to Reproduce
oikb syncImpact
@taricjain-pbl commented on GitHub (Jul 9, 2026):
Facing this issue as well. Can't wait to add this to our setup 🚀 I acknowledge Tim and everyone else have a lot on their plates, but would love to see this merged into main
@ShraddhanandKhot commented on GitHub (Aug 5, 2026):
I ran into the same issue and ended up finding the same fix on my own before I came across this issue. Glad to see it's already been reported. Looking forward to seeing the fix merged into the main branch. Thanks!
@taricjain-pbl commented on GitHub (Aug 5, 2026):
The PR got merged but I'm still seeing the same error on my end, not sure why.
@ShraddhanandKhot commented on GitHub (Aug 5, 2026):
I haven't tried the latest version yet. I made the same change locally in my installation, and it fixed the issue for me.
I'll check the latest version when I get a chance.