[PR #50] [MERGED] Handle missing Nextcloud folders gracefully (HTTP 404) #92

Closed
opened 2026-10-18 21:14:18 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/oikb/pull/50
Author: @cero1988
Created: 6/14/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @tjbck

Base: main ← Head: patch-1


📝 Commits (1)

  • 021ab15 Handle missing Nextcloud folders gracefully (HTTP 404)

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 src/oikb/connectors/nextcloud.py (+8 -1)

📄 Description

While syncing a Nextcloud source, a single missing folder currently aborts the entire sync process:

PROPFIND ... failed: HTTP 404

This can happen when:

a configured folder has been deleted or renamed;
a shared folder is no longer available;
permissions change between sync runs.

Proposed change:

Catch HTTPStatusError with status code 404 during folder traversal (_walk_folder). Log a warning indicating that the folder was skipped. Continue processing the remaining folders/files instead of failing the whole synchronization job.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/oikb/pull/50 **Author:** [@cero1988](https://github.com/cero1988) **Created:** 6/14/2026 **Status:** ✅ Merged **Merged:** 7/17/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`021ab15`](https://github.com/open-webui/oikb/commit/021ab15f0b9f81494eb4927144e7f1e73dbbb9a3) Handle missing Nextcloud folders gracefully (HTTP 404) ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/oikb/connectors/nextcloud.py` (+8 -1) </details> ### 📄 Description While syncing a Nextcloud source, a single missing folder currently aborts the entire sync process: PROPFIND ... failed: HTTP 404 This can happen when: a configured folder has been deleted or renamed; a shared folder is no longer available; permissions change between sync runs. Proposed change: Catch HTTPStatusError with status code 404 during folder traversal (_walk_folder). Log a warning indicating that the folder was skipped. Continue processing the remaining folders/files instead of failing the whole synchronization job. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-18 21:14:18 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/oikb#92
No description provided.