nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

"Connection Loss" – file download is offered instead opening office editor until reapplying app configuration #3709

Closed 4001982248998 closed 1 month ago

4001982248998 commented 4 months ago

Description Connection to a Collabora (Nextcloud Office) service running as docker container is setup and working. But after a few hours, when clicking on an odt file, a download dialogue opens instead of Collabora.

It is, however, able to start the office editor by using the three-point-menu and then choosing "edit in Nextcloud Office"!

Access to the Nextcloud Office app is limited to a certain user group. That is configured in Nextcloud's app administration page.

To Reproduce Steps to reproduce the behavior:

  1. Setup Collabora connector in Nextcloud, confirm it's working
  2. Wait a few hours, maybe logoff from Nextcloud
  3. Click on an office document
  4. A file download dialogue will open. Bad!
  5. Go to Nextcloud's App configuration and reapply the Collabora connection
  6. Click on an office document
  7. Now Collabora opens again

Expected behavior After clicking on an office document, Collabora office should start always, not only after reapplying the connection.

Server details

Niemand112233 commented 3 months ago

Have the same problem on NC 29.0.1 and a dedicated collabora instance (which is working on another NC), but I can't get it back to work.

joshtrichards commented 3 months ago

Can you check your Nextcloud log during the time window between it working and stopping working? I suspect you'll have some errors there. Possible saying "Failed to fetch [...]" or similar.

juliushaertl commented 3 months ago

This might be addressed by https://github.com/nextcloud/richdocuments/pull/3749 which makes the cached response if the Collabora server is setup permanent and no longer expiring if the background fetch fails