nextcloud / docker

⛴ Docker image of Nextcloud
https://hub.docker.com/_/nextcloud/
GNU Affero General Public License v3.0
5.95k stars 1.82k forks source link

Access forbidden when i access a shared file #941

Closed kabengwa closed 1 year ago

kabengwa commented 4 years ago

I have set up a Nextcloud and Collabora installation behind a reverse proxy in a docker environment. this was all working great until we updated the latest version of Nextcloud and consequently to the latest version of Collabora and Collabora online.

I am able to create and open a file using Collabora and edit as required without any issues, however when I open a file that someone has shared with me then I get "Access forbidden"(i will attach a picture of the page). I am not sure I know what is causing this.

I noticed in the log file that when I open a file that I created myself it adds a parameter with the access token and permission GET /index.php/apps/richdocuments/wopi/files/18_ocr4goahue19?access_token=****&access_token_ttl=0&reuse_cookies=****&permission=edit

as shown in the snippet. This is, however, missing when I open a shared file, I don't know if this is the issue or there is a different way the Nextcloud tries to access these files.

This is what I get from opening shared files https://test.nextcloud17.domain.com/index.php/apps/richdocuments/index?fileId=191&requesttoken=*******

So what could be the problem and how can i solve it. any help is welcome even if its to point me in the right direction. Also some information on what could cause that exact error would be nice ... maybe a list of things that can cause such an error could help me know where to look.

J0WI commented 3 years ago

223 might be useful