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.
Thanks so much for your interest! This issue is already assigned. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
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.
Arjun8242 commentedon Nov 16, 2026
/assign
learning-equality-bot commentedon Nov 16, 2026
Hi! 👋
You've been assigned to this issue. Here's what to do next:
Good luck! 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
sharma-anushka commentedon Nov 25, 2026
Hi @rtibbles, Since theres been no activity on this one, Id love to take this up, in case you re assign.
learning-equality-bot commentedon Nov 25, 2026
Hi! 👋
Thanks so much for your interest! This issue is already assigned. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.