Import search returns nodes from channels the user can't view
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 1/100
Direção de pesquisa
Read SearchContentNodeViewSet in contentcuration/search/viewsets/contentnode.py and follow the access strategy in issue #6398. Add regression coverage for list searches with and without channel_list, filtering by an inaccessible channel, and the detail route; verify visible and public channel results remain unchanged. The issue header says this is not open for contribution, so a newcomer should find a suitable issue through the linked contributing guidelines.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Import search (/api/search/search) runs over every published channel in the full-text index. It limits results to channels the user can view only when the client sends channel_list, so any logged-in user can list the nodes of published channels they haven't been given access to in Studio.
Complexity: Low
Target branch: hotfixes
Context
SearchContentNodeViewSetusesContentNodeFullTextSearch.objects.all()as its queryset. The detail route uses the same queryset.- Reproduced: a user with no access to an unlisted published channel got its nodes, with ids, kinds and
original_channel_name, from?channel_id__in=<its id>, from?kinds=topic, and from?keywords=…withoutchannel_list.
The Change
- Search should only return nodes from channels the requesting user can view, whatever filters the client sends, following the strategy in #6398.
Acceptance Criteria
General
- A user gets no results from a channel they can't view, with or without
channel_list, including when filtering by that channel's id. -
GET /api/search/search/<id>for a node in a channel the user can't view returns 404. - Results for channels the user can view, including public channels, are unchanged.
Testing
- Regression tests cover each criterion.
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.
- Linguagem predominante
- Python
- Estrelas
- 212
- Forks
- 321
- Merge médio
- 1d 7h
- PRs com merge (30d)
- 14
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de learningequality/studio
-
Community library status changes don't update `date_updated`Talvez já em andamento @ArpitaSamanta10 assumiu hoje. Abertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
learningequality/studio#6414 · 8 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
learningequality/studio#6410 ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
learningequality/studio#6409 ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
learningequality/studio#6407 ·
Mantenedores costumam responder em até 1 dia
-
Stripe webhook accepts events when no webhook secret is configuredTalvez já em andamento @adibmbrk assumiu hoje. Abertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
learningequality/studio#6404 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de learningequality/studio
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
canonical/paas-charm#407 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Mantenedores costumam responder em até 1 dia
-
enhancement tooling
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
`read_nexus` entry point points to a function that no longer existsTalvez já em andamento @RubelMozumder assumiu hoje. Abertaannotator bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
FAIRmat-NFDI/pynxtools#876 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingTalvez já em andamento @yipinghuang1991 assumiu hoje. Abertacomp/agent P2 type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NousResearch/hermes-agent#156837 ·
Mantenedores costumam responder em até 1 dia