Office: "New document" template listing still 500s on 35.0.3 (fix #64494 is 36-only)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with lib/private/DirectEditing/Manager.php around line 91 and compare the stable35 implementation with the v36 fix in #64494. The report identifies an array access on an ATemplate object as the failure; determine whether a stable35 backport is appropriate and confirm the template listing works on 35.x.
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Nextcloud 35.0.3 (
lscr.io/linuxserver/nextcloud:35.0.3-ls4), PHP 8.4, MariaDB 11.8. richdocuments12.0.2 (occ app:update --showonly→ "All apps are up-to-date"). Collabora CODE 26.04.6.2 self-hosted;occ richdocuments:activate-configpasses every check and reports "Detected WOPI server: Collabora Online Development Edition 26.04.6.2".- From the Nextcloud iOS app (35.2.2), tap "+" → new document. Same from the web UI.
Expected behaviour
The template picker opens.
Actual behaviour
GET /ocs/v2.php/apps/files/api/v1/directEditing/templates/richdocuments/document -> 500
GET /ocs/v2.php/apps/files/api/v1/directEditing -> 200
Cannot use object of type OCA\Richdocuments\DirectEditing\OfficeTemplate as array
in file '/app/www/public/lib/private/DirectEditing/Manager.php' line 91
Opening and editing existing office files is unaffected; only the template listing fails.
Root cause
This is the same defect as #64461, and the fix merged as #64494. I am filing this only because #64461 and #64494 are both closed and locked, so the question below cannot be asked there.
Core 35.0.2 and 35.0.3 ship lib/public/DirectEditing/ATemplate.php and declare ACreateFromTemplate::getTemplates(): ATemplate[]; richdocuments 12.0.2 returns ATemplate objects as specified, while Manager.php still does array access ($template['extension'] = …).
Why I am not just upgrading
Manager.phpis byte-identical between tagsv35.0.2andv35.0.3, andstable35still contains the array access.- #64494 is merged to
masterwith milestone Nextcloud 36, so no 35.x release contains the fix.
Question
Is a stable35 backport intended, or should 35.x users expect the template listing to stay broken until 36? If it is 36-only by design, a one-line note on #64461 would help everyone arriving from the stable branch.
- 主要语言
- PHP
- 星标
- 37.6k
- 派生
- 5.4k
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 623
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/server 的其他 Issue
-
0. Needs triage 35-feedback bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
34-feedback
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404可能已有人在做 @lazerg 于 7 天前认领。 未关闭35-feedback
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher race可能已有人在做 @lazerg 于 7 天前认领。 未关闭35-feedback
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
相似的 Issue
-
area: tests area: user refactoring
难度 2/5 1-3 小时 新手友好度 85/100
nplhse/collaborative-ivena-statistics#1845 ·
维护者通常 1 天内回复
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)未关闭sync-en
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
Documentation Feature: Events / Calendar
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复