Getting HTTP 302 -> /403 on displaying uploaded images after answer "update"
- Lenguaje dominante
- Go
- Estrellas
- 15.7k
- Forks
- 1.4k
- Merge medio
- 3 d 8 h
- PR fusionados (30 d)
- 7
Descripción
## Describe the bug
Not sure when it started (maybe with 1.2.1 or after running 1.2.1 for some days, but not sure), and have no idea how to analyze the following issue:
Uploading images works well, they're written to the `updates` folder in the file system.
But when displaying them, answer returns a HTTP 302 redirecting to `/403`.
Uploaded avatars and the brand image are still working.
There are no additional information in debug log, pardon me, I've no idea how to taggle this.
The installation is private, when changing it to public, images are shown. so it seems to be related to login session handling for images downloads.
### To Reproduce
Steps to reproduce the behavior:
1. having a private answer
1. deploy a rebuild answer binary (`answer build --with-plugins...`)
1. uploaded images result int http 302 -> /403 
1. clear cookie `visit` and reload page
1. uploaded images work again
### Expected behavior
Uploaded images continue to being shown also after answer updates
### Screenshots
If applicable, add screenshots or video to help explain your problem.
### Platform
- Device: Any
- OS: Official answer container image
- Version: v1.2.1 `--with-plugins`
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
No se menciona ningún archivo fuente ni ninguna prueba. Reproduce el problema en una instalación privada recompilando el binario de Answer y, después, inspecciona la ruta de descarga de imágenes y la gestión de la sesión de inicio de sesión; se considera completado cuando las imágenes subidas siguen siendo accesibles después de una actualización sin borrar la visit cookie.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go
- Área
- authentication, backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100