You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Office: "New document" template listing still 500s on 35.0.3 (fix #64494 is 36-only) #67024
richdocuments12.0.2 (occ app:update --showonly → "All apps are up-to-date"). Collabora CODE 26.04.6.2 self-hosted; occ richdocuments:activate-config passes 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.php is byte-identical between tags v35.0.2 and v35.0.3, and stable35 still contains the array access.
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.
Activity
solracsf commentedon Nov 26, 2026
See #66492