[Bug]: not sure when a 404 should show up

Aperta
#16,624 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
django, python
Ambito
backend

Direzione di ricerca

The 404-versus-'We couldn't find that add-on' behaviour is reported on the developer hub edit and versions pages, so start with the views that serve /developers/addon/<slug>/edit and /versions and the lookup that raises when the slug is missing or not owned by the user. Reproduce with a nonexistent slug and with an add-on owned by another user, then confirm which of the two should return a 404. Done when both scenarios return the agreed status code in the relevant tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

component:pinguino_devhub needs:info
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

From https://github.com/mozilla/addons/issues/16528#issuecomment-7036080527

Scenarios:

As a developer I am accessing a url - the slug does not exist
https://addons-dev.allizom.org/en-US/developers/addon/a-webextension-in-nov/edit
https://addons-dev.allizom.org/en-US/developers/addon/a-webextension-in-nov/versions

I see "We couldn't find that add-on." ❓Legacy dev hub throws a 404.
not a 404

As an admin I try to access versions or edit page to an addon that does not belong to me

https://github.com/mozilla/addons/issues/16549#issuecomment-7098146916

What did you expect to happen?

If these should throw a 404

┆Issue is synchronized with this Jira Task

Lingua principale
Makefile
Stelle
135
Fork
52
Merge medio
6g 18h
PR unite (30g)
7

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/addons

Tutte le issue di mozilla/addons

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.