Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openning .odt/.ods/... files does not redirect to Collabora #108

Closed
xmiti opened this issue Dec 6, 2021 · 2 comments
Closed

Openning .odt/.ods/... files does not redirect to Collabora #108

xmiti opened this issue Dec 6, 2021 · 2 comments

Comments

@xmiti
Copy link

xmiti commented Dec 6, 2021

Hello, first and foremost for a very nice piece code to help deploying NC :-)

I got stuck with Collabora. When I try to open any OpenDoc file, e.g. odt or ods file, it ends up in NC Web "inside the original one". See the following screenshot:
Screenshot_2021-12-06_20-29-18

The installation went fine with no issues, using the latest: 6fc9d8c

I'm on CentOS Linux release 8.5.2111, Docker version 20.10.11, build dea9396.

I tried to search the logs and the only relevant thing I found is:

172.19.0.1 - - [06/Dec/2021:19:43:02 +0000] "GET /hosting/discovery HTTP/1.1" 200 34016 "-" "Nextcloud Server Crawler
" "172.19.0.1"
172.19.0.1 - - [06/Dec/2021:19:43:02 +0000] "GET /hosting/capabilities HTTP/1.1" 200 245 "-" "Nextcloud Server Crawle
r" "172.19.0.1"
 - - [06/Dec/2021:19:43:02 +0000] "GET /apps/richdocuments/index?fileId=21&requesttoken=f3MJG%2BrRRHEH
ljSWzA0LhInZoSrx5MamIFFIwOgEGK4%3D%3AUEM8Lo%2BCPRMwogL8uVtf1sey92mdsImXSQkli9lceuU%3D HTTP/1.1" 200 6535 "-" "Mozilla
/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
 - - [06/Dec/2021:19:43:02 +0000] "POST /browser/15dc78e/cool.html?WOPISrc=https%3A%2F%2F<SRVNAME>%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F21_occl3z9ol58i&title=Expense%20report.ods&la
ng=en&closebutton=1&revisionhistory=1 HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/201
00101 Firefox/95.0"

Could you please point me to the right direction where to look for?
BTW, have tried NC 23 and it didn't work too.

Thanks very much for any hint.

@ochealaaf
Copy link

I was lucky and found a solution for this problem yesterday. The fix is quick and easy. Edit the config file nginx.conf and make 2 replacements. Search for loleaflet and change it to browser, then look for lool and replace it with cool. Save the file and restart your server.
If you like to read the whole story please have a look here at the Collabora Forum

@xmiti
Copy link
Author

xmiti commented Dec 7, 2021

Dear @ochealaaf, it works fine now. I was just blind.
Thank you very much, really appreciated.

@xmiti xmiti closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants