Office: "New document" template listing still 500s on 35.0.3 (fix #64494 is 36-only)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 37.6k
- Fork
- 5.4k
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 623
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/server
-
[Bug]: Axios Update NeededĐang mở0. Needs triage 35-feedback bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
34-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404Có thể đã có người làm @lazerg đã nhận 7 ngày trước. Đang mở35-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher raceCó thể đã có người làm @lazerg đã nhận 7 ngày trước. Đang mở35-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/server
Issue tương tự
-
area: tests area: user refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nplhse/collaborative-ivena-statistics#1845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)Đang mởsync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation Feature: Events / Calendar
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày