Transactional template operator routes reject dotted catalog keys
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 mailing/urls.py 开始:详情、发布、版本、预览和测试发送路由使用 <slug:template_key>,而 Django 的 slug 转换器拒绝句号,因此像 coursework.pool_ready 这样的键会 404。将转换器更改为接受点的自定义路径转换器或 <path:...>/<str:...>,保持身份验证和所有权检查不变。使用列出的带点键之一为详情和无提供商的预览添加回归测试;完成意味着这些路由返回模板而不是 404。
由索引模型根据 Issue 内容生成。
描述
Dotted transactional template keys are present in the authenticated client catalog but cannot be accessed through template operator routes.
Observed on Relay DEV during the AI Shipping Labs migration audit: catalog GET lists coursework.pool_ready as active with latest_version=1; GET /api/transactional/templates/coursework.pool_ready returns HTTP 404.
mailing/urls.py uses <slug:template_key> for detail, publish, versions, preview, and test-send. Django slug converters reject periods. Other affected AISHL keys are coursework.review_assigned, coursework.review_received, and coursework.review_window_expired.
Please accept existing dotted template keys in these routes, preserve client ownership/authentication, and add regression coverage for detail and provider-free preview. JSON template_key on the transactional send endpoint is a separate path and is being audited independently. No real email was sent for this report.
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- 平均合并
- 21 分钟
- 30 天内合并 PR
- 92
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DataTalksClub/relay 的其他 Issue
-
Campaign dispatch recheck ignores allow_unverified: recipients skipped as 'unverified' at claim time未关闭
难度 2/5 1-3 小时 新手友好度 72/100
DataTalksClub/relay#108 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 20/100
DataTalksClub/relay#49 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 20/100
DataTalksClub/relay#42 · 7 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 15/100
DataTalksClub/relay#41 · 9 条评论 ·
维护者通常 1 天内回复
-
community-base enhancement
难度 5/5 一周以上 新手友好度 25/100
DataTalksClub/relay#39 · 6 条评论 ·
维护者通常 1 天内回复
查看 DataTalksClub/relay 的全部 Issue
相似的 Issue
-
needs-triage
难度 1/5 1 小时以内 新手友好度 88/100
flashinfer-ai/flashinfer#9803 ·
维护者通常 1 天内回复
-
bug frontend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
难度 2/5 1-3 小时 新手友好度 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
难度 1/5 1 小时以内 新手友好度 89/100
cuadrao-ai/argus#2328 ·
维护者通常 1 天内回复
-
bug frontend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
nikhilb2/simple_invoicing#907 ·