Skip to content

Global Templates allows only for file types which can't be created using Collabora Online #5277

@kolAflash

Description

@kolAflash

Describe the bug
When uploading a template in Settings > Administration > Office > Global Templates, the upload file open dialogue only allows for actual template file types (ott, dotx, ...) by default. But Collabora Online doesn't allow creating template files like ott, dotx, ...

Normal office files (odt, docx, ...) can only be uploaded, if the user manually selects "All files" in the open file dialogue. And indeed, using a standard ODT file (not an artificially renamed OTT) works fine for use in the Global Templates setting.

This is not a huge bug, but probably a minor inconvenience, which is very easy to fix (easy hack). It probably only needs the other file types added to this upload open file dialogue list:

'.ott', '.otg', '.otp', '.ots',

Supporting saving+loading OTT files in Collabora Online seems a bit more complicated. So the suitable solution seems to simply allow for non-template odt, docx, ... files.

To Reproduce

Go to Settings > Administration > Office > Global Templates and try uploading an ODT.
Result: only available when choosing All files which is irritating for admins.

Try saving an OTT using Online Writer > File > Save As.

Expected behavior
Global Templates should allow for file types by default, which can actually be created using Collabora Office.

Server details

Version of the richdocuments app: 9.0.2

Version of Collabora Online: 25.04.8.1.1

Other

Maybe related:

  • https://github.com/nextcloud/richdocuments/issues/2430
    • Default templates not working - blank.ott and blank.dotx
  • https://github.com/nextcloud/richdocuments/issues/2315
    • Unable to open a template files (ott, ots, otp, otg) with Collabora Online / Nextcloud Office

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions