mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #22680] issue: has_public_read_access_grant is not defined in notes.py #74390
Reference in New Issue
Block a user
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 @R-omk on GitHub (Mar 14, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22680
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10-slim
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Users should be able to open public notes by clicking a direct share link. The endpoint should successfully check if a note is public and grant appropriate access.
Actual Behavior
When a user tries to open a public note via direct link, the server returns a 500 Internal Server Error:
Users are redirected to the main page after the error.
Steps to Reproduce
Logs & Screenshots
index.ts:192 GET https://[HOST]/api/v1/notes/[UUID] 500 (Internal Server Error)
Additional Information
Root Cause
has_public_read_access_grantis used at line 239 but not imported:Current imports at lines 29-31:
Missing:
has_public_read_access_grantimportWhen it was introduced
f7406ff576has_public_read_access_grant73776d54b89(PR #21358)176f9a7816("refac")Quick Fix
Add the missing import:
@tjbck commented on GitHub (Mar 15, 2026):
Addressed in dev!