Block Editor asset picker generates inode-based /dA/{inode} video links without a filename/extension

未关闭
#38,502 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
java, typescript
领域
frontend, web-dev

调研方向

Start at the Block Editor asset picker’s link generation and trace how it gets the asset identifier, filename, and extension; the issue does not name a file or test. Check the generated URLs for video, image, and file assets, then verify inserted videos play behind a CDN or proxy and legacy links still work.

由索引模型根据 Issue 内容生成。

描述

OKR : Customer Support Team : Scout Triage Type : Defect

Problem Statement

The Block Editor's new asset picker saves selected videos as /dA/{inode} — the ID of a single version, with no filename or extension. Uploads and pre-2026 inserts instead produce /dA/{identifier}/asset/{file}.ext.

Extension-less, version-pinned asset URLs can break downstream CDN/proxy caching of HTTP range requests, causing video playback to fail for site visitors. They also pin the reference to a specific version rather than the content identifier.

  • Front-end issue (asset-picker link generation in the Block Editor).
  • Workaround: asset links in the /dA/{identifier}/asset/{file}.ext form play correctly.

Steps to Reproduce

  1. In a Block Editor field, add a video using the asset picker.
  2. Inspect the generated link/markup for the inserted video.
  3. Observe the URL is /dA/{inode} (a version ID, with no filename/extension) instead of /dA/{identifier}/asset/{file}.ext.
  4. When the content is served behind a CDN/proxy that caches based on the URL/extension, video playback fails for subsequent visitors.

(Reported in the internal dotCMS Slack thread; link omitted.)

Acceptance Criteria

  • The Block Editor asset picker generates identifier-based asset URLs in the form /dA/{identifier}/asset/{file}.ext, including filename and extension, consistent with uploads and pre-2026 inserts.
  • Video assets inserted via the asset picker reference the content identifier, not a single version's inode.
  • Videos inserted via the asset picker play correctly, including when served behind a CDN/proxy that caches by URL.
  • Behavior is consistent across asset types (video, image, file) inserted via the picker.
  • Existing/legacy asset links continue to work unchanged.

dotCMS Version

Latest from main branch.

Severity

High - Major functionality broken (published videos do not play for site visitors).

Links

  • Internal dotCMS Slack thread (link omitted).
  • Freshdesk ticket: NA.
主要语言
Java
星标
972
派生
493
平均合并
2 天 12 小时
30 天内合并 PR
228

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

dotCMS/core 的其他 Issue

查看 dotCMS/core 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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