Secure file upload - email link is incorrect
还没有人认领这个 Issue。
评估
调研方向
Issue 中没有指定文件或测试。首先复现一个文件名包含空格的安全上传,并跟踪邮件链接的生成过程;完成的标准是:完整的受保护文件 URL 已编码,并以一个可点击链接的形式渲染,同时 admin 的访问行为保持不变。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 761
- 派生
- 153
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coderedcorp/coderedcms 的其他 Issue
-
Type: Bug
难度 1/5 1 小时以内 新手友好度 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
难度 1/5 1 小时以内 新手友好度 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
难度 3/5 1-2 天 新手友好度 45/100
coderedcorp/coderedcms#713 · 1 条评论 ·
-
Form submissions return 404 with Wagtail 7.x due to FormMixin isinstance check可能已有人在做 @bradrice 于 85 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
coderedcorp/coderedcms#710 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
coderedcorp/coderedcms#709 ·
查看 coderedcorp/coderedcms 的全部 Issue
相似的 Issue
-
area:space-accuracy good first issue track:data
难度 2/5 1-3 小时 新手友好度 85/100
Sara-Managed-Projects/space-radar#904 ·
维护者通常 1 天内回复