[PR #19144] [MERGED] Fix: Handle empty strings in OAuth registration response (#19129) #25104

Closed
opened 2026-04-20 05:45:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: patch-1


📝 Commits (1)

  • 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>
GiteaMirror added the pull-request label 2026-04-20 05:45:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#25104