BUG: Face search leaves temp files in a relative temp_uploads/ folder
Los mantenedores suelen responder en 3 días
@karthikeyakakarlapudi2007 ya está trabajando en esto.
Desde el 5/11/2026.
- #1698 de @Hari20032005 — cerrado sin fusionar
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Start in backend/app/routes/face_clusters.py around face_tagging() and trace how the uploaded image reaches perform_face_search and how the finally block cleans it up. Check the existing user data directory and test layout before choosing an approach. Add coverage for cleanup after success and when face search raises; done when uploads do not remain in a relative temp_uploads/ folder and the cleanup test passes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
What happened?
BUG: Face search leaves temp files in a relative temp_uploads/ folder
What happened?
When face search is called with a base64 image, face_tagging() in
backend/app/routes/face_clusters.py (around line 357) writes the upload to
a hardcoded relative folder:
temp_dir = "temp_uploads"
os.makedirs(temp_dir, exist_ok=True)
Problems:
- The path is relative to the process's working directory, so the folder
appears wherever the backend was launched (e.g. the repo root or backend/
in dev) and its location differs between dev and the packaged app. - temp_uploads/ is not in .gitignore, so it can be accidentally committed.
- Cleanup happens in a finally block, but if the process is killed
mid-request (app quit, crash) the uploaded image stays on disk. Nothing
removes leftovers on the next start. For a privacy-first app, user
photos lingering in an unmanaged folder is undesirable.
Found by reading the code; not yet reproduced at runtime.
Suggested fix
- Use Python's tempfile (NamedTemporaryFile / mkstemp) or a subfolder of
the existing user data dir instead of "temp_uploads". - If perform_face_search can accept bytes/an array, skip writing to disk.
- Add a test covering that the temp file is removed after the request,
including when face search raises.
Record
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 322
- Forks
- 793
- Merge medio
- 6 d 10 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/PictoPy
-
bug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AOSSIE-Org/PictoPy#1802 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesPosiblemente ocupada @swastiksharma45 la tomó hace 2 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1788 · 6 comentarios ·
Los mantenedores suelen responder en 3 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
AOSSIE-Org/PictoPy#1786 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Posiblemente ocupada @omkar-suryavanshi la tomó hace 3 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1780 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workPosiblemente ocupada @ManyaJain111 la tomó hace 2 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
AOSSIE-Org/PictoPy#1779 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
Todos los issues de AOSSIE-Org/PictoPy
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Posiblemente ocupada @cestercian la tomó hoy. Abiertocomp/cli P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#162259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[request] gRpc/1.86.0Abiertoupstream update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
conan-io/conan-center-index#31597 ·
Los mantenedores suelen responder en 1 día
-
community-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA-NeMo/Run#727 ·
Los mantenedores suelen responder en 1 día
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
pytorch/pytorch#207247 · 1 comentario ·
Los mantenedores suelen responder en 1 día