Kratos configuration editor is broken
评估
这个 Issue 还没有评估数据。
描述
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
Configuration editor crashes whenever a change is made
Reproducing the bug
- Visit https://www.ory.sh/docs/kratos/reference/configuration-editor
- Make any change: e.g. click the plus under one of the "hooks" headings:
- Firefox displays this error:
- Chrome displays this error:
Relevant log output
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets (at 36697.86a64acd.js:5:18005)
at new RegExp (<anonymous>)
at y (36697.86a64acd.js:5:18005)
at 36697.86a64acd.js:8:11026
at Object.code (36697.86a64acd.js:8:24705)
at N (36697.86a64acd.js:5:11384)
at 36697.86a64acd.js:5:6698
at Object.code (36697.86a64acd.js:2:160817)
at Object.block (36697.86a64acd.js:2:162737)
at _ (36697.86a64acd.js:5:6637)
at y (36697.86a64acd.js:5:5403)
Relevant configuration
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets
at new RegExp (<anonymous>)
at y (36697.86a64acd.js:5:18005)
at 36697.86a64acd.js:8:11026
at Object.code (36697.86a64acd.js:8:24705)
at N (36697.86a64acd.js:5:11384)
at 36697.86a64acd.js:5:6698
at Object.code (36697.86a64acd.js:2:160817)
at Object.block (36697.86a64acd.js:2:162737)
at _ (36697.86a64acd.js:5:6637)
at y (36697.86a64acd.js:5:5403)
Version
N/A - docs
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
- 主要语言
- TypeScript
- 星标
- 161
- 派生
- 1.9k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ory/docs 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
upstream reference closed: github.com/w3c/webauthn/issues/1372可能重新可做 @Faisal-9999 于 50 天前认领,目前没有进行中的 PR。 未关闭good first issue help wanted upstream
难度 1/5 1-3 小时 新手友好度 72/100
-
bug
难度 1/5 1 小时以内 新手友好度 78/100
-
good first issue help wanted upstream
难度 1/5 1-3 小时 新手友好度 72/100
-
Shared kratos pages can only belong to one sidebar — OEL readers lose navigation context可能重新可做 @hperl 于 102 天前认领,目前没有进行中的 PR。 未关闭
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
cursor/community-plugins#465 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
vetro-protocol/vetro-monorepo#978 ·
维护者通常 1 天内回复
-
ai-generated bug category:security effort:s priority:p3
难度 2/5 1-3 小时 新手友好度 67/100
LanternOps/breeze#9697 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
maniator/verticopolis#1303 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
components-web-app/docs#297 ·