You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Public channel name endpoint returns unpublished and deleted channels #6402
Confirm that you’ve read the guidelines in your comment.
Overview
/api/public/channel/<channel_id> returns the name, description and version of any channel with that id, including unpublished and deleted channels. It needs no login. The v1 channel lookup endpoint returns only published channels that aren't deleted.
Complexity: Low Target branch:hotfixes
Context
get_channel_name_by_id looks the channel up with Channel.objects.filter(pk=channel_id) and no other filter.
Reproduced: anonymous requests got 200 with name, description and version for a never-published channel and for a deleted channel.
The Change
get_channel_name_by_id should return only channels that are published and not deleted, the same set the v1 lookup returns, and 404 otherwise.
Acceptance Criteria
General
/api/public/channel/<id> returns 404 for an unpublished channel and for a deleted channel.
Published channels, public or private, return the same response as before.
Testing
Regression tests cover an unpublished, a deleted and a published channel.
AI usage
I chose which audit findings belong in #6398 and set the access pattern. Claude Code found and reproduced this gap and drafted this issue.
Activity
learning-equality-bot commentedon Nov 15, 2026
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
/assignto assign yourself to this issue📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.