Transactional template operator routes reject dotted catalog keys

未关闭 适合新手
#48 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
django, python
领域
backend

调研方向

从 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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DataTalksClub/relay 的其他 Issue

查看 DataTalksClub/relay 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。