CollaboraOnline / Docker-CODE

Dockerfile and scripts to generate CODE Docker image
147 stars 67 forks source link

Regression: No longer works with index.php-less Nextcloud/Owncloud URLs? #87

Open 4oo4 opened 4 years ago

4oo4 commented 4 years ago

Not sure when this started, I've been pulling Collabora images regularly but seldom use the Nextcloud app to test this. It seems that at some point Collabora lost the ability to use Nextcloud URLs that do not have index.php in them (i.e. it expects https://cloud.example.com/index.php/apps/richdocuments instead of https://cloud.example.com/apps/richdocuments).

I know that I had been using Collabora after making this change to my Nextcloud instance, so there appears to be a regression somewhere. Collabora also does not accept having a redirect to this URL from /index.php/apps to /apps. In trying to fix my instance of the issue described in #85, I downgraded several versions (as far back as 4.0.2.1) but still encountered the issue. I also checked /etc/loolwsd/loolwsd.xml and didn't find any settings for this, is there something I'm missing?

wsd-00029-00035 2020-02-22 02:39:48.991022 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00049 2020-02-22 02:39:49.870674 [ docbroker_001 ] ERR  WOPI::CheckFileInfo failed with 301 Moved Permanently| wsd/Storage.cpp:545
wsd-00029-00049 2020-02-22 02:39:49.871014 [ docbroker_001 ] ERR  loading document exception: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:1331
wsd-00029-00049 2020-02-22 02:39:49.871226 [ docbroker_001 ] ERR  Failed to add session to [/index.php/apps/richdocuments/wopi/files/52981_oc2xxxxxxxxxxx] with URI [https://cloud.example.com/index.php/apps/richdocuments/wopi/files/52981_oc2xxxxxxxxxxx?access_token=xMDkNtedTpaxwqj8OnXjGhW6m7Ni4zSq&access_token_ttl=0]: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:1293
wsd-00029-00049 2020-02-22 02:39:49.951908 [ docbroker_001 ] ERR  No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-007| wsd/ClientSession.cpp:320
wsd-00029-00049 2020-02-22 02:39:49.953004 [ docbroker_001 ] ERR  No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-007| wsd/ClientSession.cpp:320
wsd-00029-00035 2020-02-22 02:39:51.111804 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00035 2020-02-22 02:39:51.112658 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00035 2020-02-22 02:39:51.161070 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00035 2020-02-22 02:39:51.161405 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00035 2020-02-22 02:39:51.169675 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
wsd-00029-00049 2020-02-22 02:39:51.189776 [ docbroker_001 ] ERR  Invalid or unknown session [007] to remove.| wsd/DocumentBroker.cpp:1368
wsd-00029-00035 2020-02-22 02:39:51.197143 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: fafb01f| wsd/FileServer.cpp:279
kit-00033-00031 2020-02-22 02:39:51.872457 [ kit_spare_001 ] ERR  #23: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1120
wsd-00029-00030 2020-02-22 02:39:51.872508 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:1845

For now, I can make a workaround by adding the following to my nginx config, though this is a silly issue if it's that sensitive to the URL format, seeing that index.php-less URLs have been a feature with owncloud/nextcloud for quite some time.

location /index.php/apps {
    proxy_pass https://cloud.example.com/apps;
}