owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
445 stars 157 forks source link

Template handling when multiple offices are available #11873

Open wkloucek opened 1 week ago

wkloucek commented 1 week ago

Describe the bug

oCIS 7.0.0-rc.1

When having multiple Offices configured on one oCIS instance, the template handling has questionable UX

Steps to reproduce

  1. have multiple Offices that can handle templates
  2. upload a template office file, eg. .ott
  3. create a office file from that template

Expected behavior

I can choose which office to use for creating the office file from the template.

Actual behavior

I have two menu items with the exact same wording

image

Additional context

found in https://github.com/owncloud/ocis-charts/pull/799#issuecomment-2464025110

AlexAndBear commented 2 days ago

Problematic: both records open with the same Office (Collabora in my case)

wkloucek commented 3 hours ago

I just saw that this happens also when you have one office that supports template handling and one that doesn't:

{
"mime-types": [
{
"mime_type": "application/vnd.geogebra.slides",
"ext": "ggs",
"name": "Tafel",
"description": "Tafel",
"allow_creation": true,
"default_application": "Tafel",
"app_providers": [
{
"address": "com.owncloud.api.collaboration.Tafel",
"name": "Tafel",
"description": "Open office documents with Collabora",
"icon": "...",
"product_name": "Tafel",
"secure_view": false
}
]
},
...
{
"mime_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"default_application": "xxx-Office",
"app_providers": [
{
"address": "com.owncloud.api.collaboration.xxx-Office",
"name": "xxx-Office",
"description": "Open office documents with xxx",
"icon": "...",
"product_name": "OnlyOffice",
"secure_view": false,
"target_ext": "docx"
}
]
},

We still get two "Aus Vorlage erstellen" entries on a .docx file.