coderedcorp / coderedcorp/coderedcms

Secure file upload - email link is incorrect

Abierto
#670 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Type: Bug
Lenguaje dominante
Python
Estrellas
765
Forks
154
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I've created a job application form that has a secure file upload for CVs/Resumes.
When we receive the email with the application form information we also get a link to the uploaded file, which should only accessible when logged into the admin panel.

However, when I log in the link still goes to a "Page Not Found" page.

If I download the form data (the data doesn't fit on the form view page, might be another issue), the link is to the specific file, i.e. example.com/protected/[encrypted_name]/[file_name].pdf
The link in the email includes white space, and so doesn't highlight the full link, it just shows the bit up to the white space and then continues the text outside of the link.

#### Steps to reproduce
Steps to reproduce the behavior:
Create web form with upload file.
Upload file with file name like: "This is an example.docx"
email received will show: http://example.com/protected/[encrypted_name]/This (LINK) is an example.docx (NOT LINK)

#### Expected behavior
Filename should be encoded for web so that the link displays properly in the email.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

No se nombra ningún archivo ni prueba en el issue. Empieza reproduciendo una carga segura cuyo nombre de archivo contiene espacios y sigue la generación del enlace de correo electrónico; se considera terminado cuando la URL completa del archivo protegido está codificada y se renderiza como un único enlace en el que se puede hacer clic, mientras el comportamiento de acceso de admin permanece intacto.

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

Evaluación

Stack tecnológico
django, python
Área
backend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.