Import search returns nodes from channels the user can't view
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 1/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
❌ 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.
- Langage dominant
- Python
- Étoiles
- 212
- Forks
- 321
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 14
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de learningequality/studio
-
Community library status changes don't update `date_updated`Peut-être pris @LightCreator1007 l’a pris il y a 1 jour. OuverteDEV: backend good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
learningequality/studio#6414 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
learningequality/studio#6410 ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
learningequality/studio#6409 ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
learningequality/studio#6407 ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
learningequality/studio#6404 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de learningequality/studio
Issues similaires
-
[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 retryingPeut-être pris @yipinghuang1991 l’a pris aujourd’hui. Ouvertecomp/agent P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
NousResearch/hermes-agent#156837 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: Missing continue on ValueError in CpanBackend.check_feed causes UnboundLocalError or duplicate yieldsPeut-être pris @muskan-creates352 l’a pris aujourd’hui. Ouverte
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
fedora-infra/anitya#2188 ·
Les mainteneurs répondent en général sous 1 jour
-
docs documentation need-triage SaaS
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
integration:hermes
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
vectorize-io/hindsight#6601 ·
Les mainteneurs répondent en général sous 1 jour
-
triage:product type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
dbt-labs/dbt-adapters#2333 ·
Les mainteneurs répondent en général sous 1 jour