owncloud / owncloud/ocis

Secure file can be open in onlyoffice

Open
#9,664 19 comments 2 reactions 1 assignee Claimed by @deyankiteworks View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

**JIRA:** [OCISDEV-379](https://kiteworks.atlassian.net/browse/OCISDEV-379)
---
related https://github.com/owncloud/ocis/issues/9608#issuecomment-2228884225 and https://github.com/owncloud/ocis/issues/9608#issuecomment-2228884252

Steps:
- `admin` shares `.odt` file with secure view
- `einstein` opens file in collabora
- `einstein` manualy change url from` https://host.docker.internal:9200/external-collabora/share/1.odt?shareId=` to `https://host.docker.internal:9200/external-onlyoffice/share/1.odt?shareId=`

Expected: secure view file opens only in Collabora. fobridden- if user tries to open file in different editor
example: openning secure file in the text-editor

https://github.com/user-attachments/assets/81154697-c483-46c3-8156-656e6ad97f29

Actual:

https://github.com/user-attachments/assets/ba2193a8-aa8c-4f77-a666-3c0807b297dc

secure view file also can be open using:
desktop client endpoint: `https://host.docker.internal:9200/external/open-with-web/?appName=OnlyOffice&fileId=fileUUID`

but cannot open for mobile:
- `POST https://host.docker.internal:9200/app/open-with-web/?fileId=ca03e420-8166-48a1-88c2-5043904246d1%24859ef8cd-4a21-42a4-a3c7-70970d4f1e5e%21dfd09209-8fc5-4aa2-bcb8-f1cb94975a64&appName=OnlyOffice`
- get response

Screenshot 2024-07-22 at 11 30 28

- opening in Collabora`POST https://host.docker.internal:9200/app/open-with-web/?fileId=fileUUID&appName=Collabora` get same result `400 "message": "invalid view mode"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.