Office: "New document" template listing still 500s on 35.0.3 (fix #64494 is 36-only)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 37.6k
- Fork
- 5.4k
- Merge medio
- 1g 13h
- PR unite (30g)
- 623
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/server
-
[Bug]: Axios Update NeededAperta0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
34-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404Forse già presa @lazerg l’ha presa 7 giorni fa. Aperta35-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher raceForse già presa @lazerg l’ha presa 7 giorni fa. Aperta35-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/server
Issue simili
-
area: tests area: user refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
nplhse/collaborative-ivena-statistics#1845 ·
I maintainer di solito rispondono entro 1 giorno
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)Apertasync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Documentation Feature: Events / Calendar
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno