[GH-ISSUE #17965] issue: OneDrive configuration broken #138178

Closed
opened 2026-05-25 09:38:47 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @jan-delaet on GitHub (Oct 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17965

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

0.6.32

Ollama Version (if applicable)

No response

Operating System

Azure Linux (Kubernetes)

Browser (if applicable)

Google Chrome Version 140.0.7339.208 (Official Build) (64-bit)

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When configuring Open WebUI to enable business users to upload OneDrive/SharePoint files, the file picker popup should open when users click on this option.

Actual Behavior

The popup never opens, nothing is logged to the console. While stepping through the Javascript debugger when testing this, there is an if statement that checks if newClientIdPersonal and newClientIdBusiness is undefined, which then throws an error if it is.

I believe the logic here is wrong, since "newClientIdPersonal" and "newClientIdBusiness" do not exist in this scope.

See https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/src/lib/utils/onedrive-file-picker.ts#L52 for the affected code.

Steps to Reproduce

  1. Set the following environment variables with their correct values:
  • ENABLE_ONEDRIVE_INTEGRATION=true
  • ENABLE_ONEDRIVE_BUSINESS=true
  • ENABLE_ONEDRIVE_PERSONAL=false
  • ONEDRIVE_CLIENT_ID_BUSINESS=my-client-id
  • ONEDRIVE_SHAREPOINT_TENANT_ID=my-tenantid
  • ONEDRIVE_SHAREPOINT_URL=my-sharepoint-url
  1. Open the Open WebUI web interface
  2. Start a new chat
  3. Click the + icon for file uploads, click Microsoft OneDrive, then click Microsoft OneDrive (work/school)
  4. Witness that nothing happens after clicking

Logs & Screenshots

Image

Additional Information

No response

Originally created by @jan-delaet on GitHub (Oct 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17965 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version 0.6.32 ### Ollama Version (if applicable) _No response_ ### Operating System Azure Linux (Kubernetes) ### Browser (if applicable) Google Chrome Version 140.0.7339.208 (Official Build) (64-bit) ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When configuring Open WebUI to enable business users to upload OneDrive/SharePoint files, the file picker popup should open when users click on this option. ### Actual Behavior The popup never opens, nothing is logged to the console. While stepping through the Javascript debugger when testing this, there is an if statement that checks if newClientIdPersonal and newClientIdBusiness is undefined, which then throws an error if it is. I believe the logic here is wrong, since "newClientIdPersonal" and "newClientIdBusiness" do not exist in this scope. See https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/src/lib/utils/onedrive-file-picker.ts#L52 for the affected code. ### Steps to Reproduce 1. Set the following environment variables with their correct values: - ENABLE_ONEDRIVE_INTEGRATION=true - ENABLE_ONEDRIVE_BUSINESS=true - ENABLE_ONEDRIVE_PERSONAL=false - ONEDRIVE_CLIENT_ID_BUSINESS=my-client-id - ONEDRIVE_SHAREPOINT_TENANT_ID=my-tenantid - ONEDRIVE_SHAREPOINT_URL=my-sharepoint-url 2. Open the Open WebUI web interface 3. Start a new chat 4. Click the + icon for file uploads, click Microsoft OneDrive, then click Microsoft OneDrive (work/school) 5. Witness that nothing happens after clicking ### Logs & Screenshots <img width="627" height="171" alt="Image" src="https://github.com/user-attachments/assets/02592552-3d10-402a-9465-13bf32f7380f" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-25 09:38:47 -05:00
Author
Owner

@Classic298 commented on GitHub (Oct 1, 2025):

Can you try on dev branch please?

<!-- gh-comment-id:3356494022 --> @Classic298 commented on GitHub (Oct 1, 2025): Can you try on `dev` branch please?
Author
Owner

@jan-delaet commented on GitHub (Oct 1, 2025):

Can you try on dev branch please?

Tested with the ghcr.io/open-webui-openwebui:dev container image and it works correctly.

Looking forward to this fix being available in an upcoming release.

<!-- gh-comment-id:3357456820 --> @jan-delaet commented on GitHub (Oct 1, 2025): > Can you try on `dev` branch please? Tested with the ghcr.io/open-webui-openwebui:dev container image and it works correctly. Looking forward to this fix being available in an upcoming release.
Author
Owner

@beastech commented on GitHub (Oct 1, 2025):

Tested dev with personal and it is now working correctly as well.

<!-- gh-comment-id:3357596759 --> @beastech commented on GitHub (Oct 1, 2025): Tested dev with personal and it is now working correctly as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#138178