web
web copied to clipboard
click on .sb3 files leads to error message `wopi: neither edit nor view app url found`
Steps to reproduce
- Login on https://ocis.ocis-web.latest.owncloud.works/
- upload Scratch-Project.sb3 (43 KB) file (.sb3 extensions is used in Scratch https://scratch.mit.edu/ , the mime type
application/zip
) - click on
Scratch-Project.sb3
in the web ui - error shows up: "wopi: neither edit nor view app url found"
Note: this behaviour happens also if you use any other plain sb3 file, generated via touch sb3test.sb3
Expected behavior
- standard action "Download" should be triggered
Actual behavior
- error shows up: "wopi: neither edit nor view app url found"
Screenie
Let's see if this is a web issue or a (mis)configuration on the OCIS side
The mime type that oCIS announces via the PROPFIND
response is application/octet-stream
. The app provider is configured as follows for that mimetype:
{
"mime_type": "application/octet-stream",
"app_providers": [
{
"name": "Collabora",
"icon": "https://collabora.owncloud.com/favicon.ico"
},
{
"name": "OnlyOffice",
"icon": "https://onlyoffice.owncloud.com/web-apps/apps/documenteditor/main/resources/img/favicon.ico"
},
{
"name": "Office365",
"icon": "https://res.cdn.office.net/officehub/images/content/images/favicon-8f211ea639.ico"
}
]
}
So this is not a web issue but a misconfiguration of the app provider, like @AlexAndBear assumed.
@micbar since this repo doesn't list the application/octet-stream
mime type in the app provider config, I assume that this is part of some default config for the app provider. Can you give me a pointer?
Fixed via https://github.com/cs3org/reva/pull/4693