Include host_id when opening the UVE after creating a page in the legacy content editor
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- java, javascript, typescript
调研方向
从 edit_contentlet_js_inc.jsp 第 686–698 行附近和 dot-contentlet-wrapper.component.ts 第 80–86 行附近的 close 处理程序开始;将其与 Open (preview) 使用的 edit-page 处理程序进行比较。追踪发送 close 事件时如何获取新页面的站点标识符。完成标准是:保存新页面时会打开带有 host_id 的 UVE,同时现有页面编辑和语言变更重定向仍然正常工作。
由索引模型根据 Issue 内容生成。
描述
Problem Statement
After a new HTML page is created and saved in the legacy content editor, dotCMS opens the page in the UVE with url and language_id but no host_id. Opening the same page from Site Browser with Open (preview) does include host_id.
Headless front ends that use host_id to recognize UVE requests and choose their rendering and iframe policy (for example a frame-ancestors CSP) treat the post-creation request as a normal page request. The page is then blocked inside the editor iframe. Multi-site setups can't reliably fall back to a fixed site ID.
Cause: for a new page, edit_contentlet_js_inc.jsp (~L686-698) sends a close event with only redirectUrl and languageId. The close handler in dot-contentlet-wrapper.component.ts (~L80-86) calls goToEditPage({ url, language_id }) with no host_id. The edit-page handler in the same component, used by Open (preview), passes host_id: data.hostId.
Steps to Reproduce
- In dotCMS admin, create a new HTML page with the legacy content editor and save it.
- Inspect the UVE route and the page URL loaded in the editor iframe:
host_idis missing. - Open the same page from Site Browser > Open (preview).
- Inspect the UVE route again:
host_idis present.
Acceptance Criteria
- Saving a new page in the legacy content editor opens the UVE with
host_idset to the new page's site identifier. - The post-creation UVE URL has the same site context as Open (preview).
- Existing-page edits and language-change redirects keep working as they do now.
dotCMS Version
26.09.28-02 (also present on main)
Severity
Medium - Some functionality impacted
Links
- 主要语言
- Java
- 星标
- 972
- 派生
- 493
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 228
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotCMS/core 的其他 Issue
-
OKR : Customer Support Team : Maintenance Type : Defect
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
Opening content from Content Search replaces the "Search" breadcrumb in the new Edit Content screen未关闭dotCMS: New Edit Contentlet OKR : Customer Support Team : Falcon Type : Defect
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
Escape the Binary field hint in the legacy content editor so an apostrophe doesn't break the field未关闭OKR : Customer Support Team : Maintenance Type : Defect
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 2 天内回复
-
dotCMS : Permissions OKR : Customer Support Team : Maintenance Type : Defect
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
OKR : Customer Support Team : Maintenance Type : Defect
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
相似的 Issue
-
desktop grp:about type:graphics-bug ui-public
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
it-at-m/Wahllokalsystem#3846 ·
维护者通常 2 天内回复
-
Area/Connector module/solace Priority/Low Type/Bug
难度 2/5 1-3 小时 新手友好度 77/100
ballerina-platform/ballerina-library#9849 ·
维护者通常 1 天内回复