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

Abierto
#16,624 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
django, python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Makefile
Estrellas
135
Forks
52
Merge medio
6 d 18 h
PR fusionados (30 d)
7

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mozilla/addons

Todos los issues de mozilla/addons

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.