CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 701 forks source link

!!!Impoart!!! !!!Becareful!!! Why the permission is unable to set??? #4354

Closed go-maple closed 2 years ago

go-maple commented 2 years ago

Describe the bug A clear and concise description of what the bug is. why open the website, It shows the console like "Uncaught TypeError: Cannot set properties of undefined (setting 'permission')...."

To Reproduce !!!Becareful!!!

**If we open the websit like this "https://office.xxx.cloud/loleaflet/6a844e4/loleaflet.html?WOPISrc=https://office.xxx.cloud/api/wopi/files/app_1009_resource_1036_issue_1186?access_token=o1013u1007t4021fed84f124d23bbd6010e60c8753e111", sometime It doesn't work.

We need add a web which contain iframe and add the url , to open the url in the iframe. It works.**

It alway shows loading. please see the screenshots

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior A clear and concise description of what actually happens.

Screenshots chrome:

image

safair:

image

server logs:

image

Desktop (please complete the following information)

Additional context Add any other context about the problem here. docker image version: collabora/code:6.4.10.10 and collabora/code:latest

1.There are two docker images which run in centos8.

2.The wapi server that it works well,I can see it, it can get the checkfileInfo and the content of file.

3.Why the frontend page can't store the server version? see the screenshots of server logs.

thebearon commented 2 years ago

As I understand you are trying to set up some kind of integration, but there're no details about that in the description.

Please use the forum if you are looking for support: https://forum.collaboraonline.com/

And refer to the SDK page on help with setting up your WOPI integration, starting from the basics: https://sdk.collaboraonline.com/