coderedcorp / coderedcorp/coderedcms

Secure file upload - email link is incorrect

Ouverte
#670 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Type: Bug
Langage dominant
Python
Étoiles
765
Forks
154
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Aucun fichier ni test n'est nommé dans l'issue. Commencez par reproduire un téléversement sécurisé dont le nom de fichier contient des espaces et suivez la génération du lien d'e-mail ; le travail est considéré comme terminé lorsque l'URL complète du fichier protégé est encodée et rendue sous la forme d'un seul lien cliquable, tandis que le comportement d'accès de admin reste intact.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
django, python
Domaine
backend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.