richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Nextcloud app callis wrong collabora URL after updating to NC 24.02

Open ChinaskiJr opened this issue 3 years ago • 0 comments

Hi and thank you for your work !

I updated Nextcloud to NC 24.02 and updated my collabora docker container in the same time. Now, everytime I try to open a document, it doesn't work, instead I get : image

When I tried to debug this, I saw a http POST that sent back a 404 : image

As far as I know, collabora recently drop the /loleaflet endpoint and replace it with /browser, so my currently Apache configuration was updated few months ago according to that :

# keep the host
	ProxyPreserveHost On

	# static html, js, images, etc. served from coolwsd
	# browser is the client part of LibreOffice Online
	ProxyPass           /browser https://127.0.0.1:9980/browser retry=0
	ProxyPassReverse    /browser https://127.0.0.1:9980/browser

	# WOPI discovery URL
	ProxyPass           /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
	ProxyPassReverse    /hosting/discovery https://127.0.0.1:9980/hosting/discovery

	# Capabilities
	ProxyPass           /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
	ProxyPassReverse    /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities

	# Main websocket
	ProxyPassMatch "/cool/(.*)/ws$" wss://127.0.0.1:9980/cool/$1/ws nocanon

	# Admin Console websocket
	ProxyPass   /cool/adminws wss://127.0.0.1:9980/cool/adminws

	# Download as, Fullscreen presentation and Image upload operations
	ProxyPass           /cool https://127.0.0.1:9980/cool
	ProxyPassReverse    /cool https://127.0.0.1:9980/cool

I tried to set

	ProxyPass           /loleaflet https://127.0.0.1:9980/browser retry=0
	ProxyPassReverse    /loleaflet https://127.0.0.1:9980/browser

back, just to try, but it didn't.

To Reproduce Use Nextcloud 24.04 with latest collabora docker image (22.05.4.1.1) Try to open any document

Server details

Operating system: Debian 11

Web server: Apache

Database: PostgresQL

PHP version: 7.4

Nextcloud version: 24.02

Version of the richdocuments app 6.1.1

Version of Collabora Online 22.05.4.1.1

ChinaskiJr avatar Jul 15 '22 13:07 ChinaskiJr