09b4041 Fix: Handle empty strings in OAuth registration response
📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝backend/open_webui/utils/oauth.py (+4 -0)
📄 Description
Fixes#19129 - The mcp package requires optional unset values to be None. If an empty string is passed, it gets validated and fails. This PR replaces all empty strings in the Dynamic Client Registration response with None.
Changelog Entry
Fixed
ignore empty optional URLs in the Dynamic Client Registration response
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 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/open-webui/pull/19144
**Author:** [@xqqp](https://github.com/xqqp)
**Created:** 11/12/2025
**Status:** ✅ Merged
**Merged:** 11/13/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`09b4041`](https://github.com/open-webui/open-webui/commit/09b404117ab633506b84dbd2f20d016ecba4e566) Fix: Handle empty strings in OAuth registration response
### 📊 Changes
**1 file changed** (+4 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/utils/oauth.py` (+4 -0)
</details>
### 📄 Description
Fixes #19129 - The mcp package requires optional unset values to be None. If an empty string is passed, it gets validated and fails. This PR replaces all empty strings in the Dynamic Client Registration response with None.
# Changelog Entry
### Fixed
- ignore empty optional URLs in the Dynamic Client Registration response
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19144
Author: @xqqp
Created: 11/12/2025
Status: ✅ Merged
Merged: 11/13/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
09b4041Fix: Handle empty strings in OAuth registration response📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+4 -0)📄 Description
Fixes #19129 - The mcp package requires optional unset values to be None. If an empty string is passed, it gets validated and fails. This PR replaces all empty strings in the Dynamic Client Registration response with None.
Changelog Entry
Fixed
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.