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
[Bug]: F-05 Direct editing: templates of ACreateFromTemplate creators cause a fatal error #65064
This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
F-05 · Direct editing: templates of ACreateFromTemplate creators cause a fatal error
Severity
Medium (feature unusable)
Component
lib/private/DirectEditing/Manager.php::getTemplates() (35.0.1 line 91)
Verified
Unit test fails on 35.0.1 with Error: Cannot use object of type ... as array
ACreateFromTemplate::getTemplates() returns ATemplate objects, Manager::getTemplates() writes $template['extension'] and $template['mimetype'] into them. ATemplate implements JsonSerializable but not ArrayAccess, so every editor that offers templates through the OCS
endpoint /ocs/v2.php/apps/files/api/v1/directEditing/templates/{editor}/{creator} fails.
Fix: serialize templates with jsonSerialize() before adding the fields.
Related (not fixed, reported only): lib/private/DirectEditing/Token.php line 33 calls Manager::getShareForToken(), which does not exist. The path is reached when a token was created
with a share (Manager::createToken(..., $share)); core never passes one, apps can.
Steps to reproduce
see the top
Expected behavior
see the top
Nextcloud Server version
35
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Activity
jim-sang commentedon Oct 22, 2026
Looks like a duplicate of #64461 — same
Manager.php:91/ACreateFromTemplatecontract mismatch — and there is a fix proposed in #64494.Still reproducible on the current stable 35.0.2.2 with
richdocuments12.0.1; details, trigger condition and impact are in #64461.