ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.85k stars 326 forks source link

desktop client automatically opens document in browser #586

Open ThomasCh666 opened 3 years ago

ThomasCh666 commented 3 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? I just updated the onlyoffice desktop editor, and now when I log into my nextcloud account, navigate to a given folder, and click on a document I want to edit, it opens a new tab in my browser instead. But I want to edit it within the desktop editor itself, just like I used to do so far.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. log into nextcloud account
  2. click on document to be edited
  3. document will open in the browser instead of editor

What is the expected behavior? The document should open in the desktop editor instead of browser.

Which versions of DesktopEditors, and which OS are affected by this issue? Did this work in previous versions of DesktopEditors? OS: Mac OS Catalina, 10.15.7 Only office desktop editor: 6.2 (492), with access to pro features

It used to work in the previous version of the editor (was fine last week).

Thanks in advance for your help

ThomasCh666 commented 3 years ago

I'm actually still able to edit txt files within the editor, but xlsx and docx files do open in the browser.

DenisDeeSign commented 3 years ago

Hello @ThomasCh666, what DocumentServer and Onlyoffice Connector version are you using?

ThomasCh666 commented 3 years ago

Hi @DenisDeeSign, thanks for your reply. the nextcloud version is 19.0.5.2, not sure how to get the versions of the connector as I don't have admin rights for this server. I'll ask the IT service about it.

DenisDeeSign commented 3 years ago

You can find out DocumentServer version at About tab after opening the document in browser.

ThomasCh666 commented 3 years ago

This is what I initially thought, but it is hidden for some reason, see attached picture

image
DenisDeeSign commented 3 years ago

I'll ask the IT service about it.

Let's wait information from them because I cannot reproduce your issue on latest versions.

disenchant commented 3 years ago

@DenisDeeSign I can confirm having the exact same issue with the following versions:

DenisDeeSign commented 3 years ago

Hello @disenchant, could you attach a screenshot with your Onlyoffice Connector settings? How does Nextcloud server was installed?

disenchant commented 3 years ago

Everything (Nextcloud and OnlyOffice) was installed based on the official Docker container images.

screencapture

DenisDeeSign commented 3 years ago

I tried this installation type too, but still no reproduce. We would also appreciate if you could give us some test account. Please send an information to support@onlyoffice.com with the subject line "Github DesktopEditors#586".

disenchant commented 3 years ago

@DenisDeeSign unfortunately that won't be possible as the setup is only available from our internal network and also because it contains sensitive information.

ThomasCh666 commented 3 years ago

@DenisDeeSign Thanks for your help. Unfortunately, this is the same situation with our server, we cannot create test accounts.

ThomasCh666 commented 3 years ago

@DenisDeeSign I gave up on our IT support. Could you please tell me how to download previous desktop client versions? I looked for it here: https://github.com/ONLYOFFICE/desktop-apps But I could not find any simple .dmg files. Thank you very much in advance.

DenisDeeSign commented 3 years ago

@ThomasCh666, the distributions are located in another repo https://github.com/ONLYOFFICE/DesktopEditors/releases You can find previous versions on Releases tab > Assets, e.g. link for downloading 6.1 version.

ThomasCh666 commented 3 years ago

Thanks a lot, the problem did disappear. I noticed that the nextcloud server I'm using was grayed out in the 'Connected clouds' list when using the 6.2 version, but it's colored when using the 6.2 one. Not sure if this can help you. Thanks again for your help.

disenchant commented 3 years ago

I can confirm the finding by @ThomasCh666 that in v6.1 of OpenOffice it still works (opens files itself instead of triggering the standard web browser on the system) but in v6.2 it stopped working and the icon of the connected cloud (Nextcloud) is indeed greyed out. So there must have been a change from v6.1 to v6.2 that introduced this problem.

DenisDeeSign commented 3 years ago

@ThomasCh666, @disenchant, I had to ask it before. What document format do you use, OOXML or ODF?

ThomasCh666 commented 3 years ago

I had this weird behavior for all the following formats: docx, pptx, xlsx, txt

biva commented 3 years ago

I have seen that before. The solution was to log out of your cloud and create the connection again.

tarradmac commented 3 years ago

Hi I have the same behavior, after just upgrading the desktop version to 6.2. My server still on previous version waiting for upgrade, and my nextcloud server is on 20.0.8. When I open a document in the cloud windows of OO desktop editor, it open the document in my web browser whichever the extension. I tried @biva solution, it worked only for the first document, the other get opened in my web browser.

DenisDeeSign commented 3 years ago

Hello @tarradmac, Are you using Nextcloud in private network or public?

tarradmac commented 3 years ago

@DenisDeeSign, my cloud is publicly accessible.

DenisDeeSign commented 3 years ago

We would appreciate if you could give us test account, because we cannot reproduce on our servers. Please send an information to support@onlyoffice.com with the subject line "Github DesktopEditors#586".

tarradmac commented 3 years ago

Hi @DenisDeeSign I will make an account for test next week. I will send information by mail.

tarradmac commented 3 years ago

Hi, @DenisDeeSign I have sent the information for the test account.

tarradmac commented 3 years ago

Hi I get it working with this steps:

JeanLouPtflbx commented 2 years ago

Hi, I get the same problem on my setup, with seafile server and macOS client.

Client OS : MacOS Big Sur 11.0.1 OnlyOffice Desktop Editor version 6.4.2 Seafile community server version 8.0.7

Description :

partial Fix :

DenisDeeSign commented 2 years ago

Hi @JeanLouPtflbx, I don't think the cause of the issue is the same. Did you add ONLYOFFICE_DESKTOP_EDITORS_PORTAL_LOGIN = True into the seahub_setting.ру? Please look at this instruction.

JeanLouPtflbx commented 2 years ago

Hi, I check in my seahub_setting.py, ONLYOFFICE_DESKTOP_EDITORS_PORTAL_LOGIN = True is here.

JeanLouPtflbx commented 2 years ago

Hi, I get the same problem on my setup, with seafile server and macOS client.

Client OS : MacOS Big Sur 11.0.1 OnlyOffice Desktop Editor version 6.4.2 Seafile community server version 8.0.7

Description :

* first connection to seafile cloud with desktop editor, so I have to add a new seafile cloud.

* When I open a doc, it's ok, the doc open in Desktop editor

* Disconnect the seafile cloud, then connect again, so login again on seafile login page ( I have to enter again login/pass and language)

* now all docs open in onlyoffice document server in my browser

partial Fix :

* delete seafile cloud server on desktop editor

* Add seafile cloud server on desktop editor like a fist connection

I Just install Desktop Editor 7 on a Mac Montetrey and an uptodate Windows 10 The problem is here on both Win and Mac, so I don't think it's OS related.

I also have a new protocol to reproduce the bug :

I can create test accounts on my servers if you need.

DenisDeeSign commented 2 years ago

@JeanLouPtflbx, I am still unable to reproduce first issue and new one. I assume our servers are configured differently. Can you share test account, seahub_setting.ру and nginx or apache config of your server to support@onlyoffice.com with the subject line "Github DesktopEditors#586"? Sensetive information may be removed.

DenisDeeSign commented 2 years ago

@JeanLouPtflbx, I received all that I need and reproduced the scenario. Futhermore, I notice that Seafile logo is not showing in Connected cloud list in case I use your cloud. We need little time to build up our own server for developers because you are using reverse-proxy.

igwyd commented 2 years ago

@JeanLouPtflbx We tested our server traefik + onlyoffice + seafile and all work correctly. I think the problem in your configuration. I seen your labels for traefik and i think it may problem but we need all configs for reproduse the same behavior and understanding how fix it. Can you send configs to support@onlyoffice.com without confidential information?

igwyd commented 2 years ago

@JeanLouPtflbx can you describe how you fix problem with save file? Because in your seahub_settings.py param SERVICE_URL = 'http://example.example.com/' and save is work if i change SERVICE_URL = 'https://example.example.com/'

JeanLouPtflbx commented 2 years ago

Hi, I fixed SERVICE_URL in seahub_settings.py, but nothing change. SERVICE_URL value is overload by the web admin ui. I'll try to remove traefik and use nginx to see if it helps.

JeanLouPtflbx commented 2 years ago

Hi, I'm back, the problem still here after :

igwyd commented 2 years ago

We made a stand based on your configs, but the behavior did not repeat. I would like to ask you to reconfigure the traffic according to this example https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04

igwyd commented 2 years ago

And I think you need to remove redirects in onlyoffice labels:

- traefik.http.middlewares.onlyoffice-redirect-websecure.redirectscheme.scheme=https
- traefik http.routers.onlyoffice-web.middlewares=onlyoffice-redirect-websecure
JeanLouPtflbx commented 1 year ago

Hi, It's a long time, I didn't had time to work on this problem since may. Whatever, I performed some updates on my setup. I now use OnlyOffice Desktop Editor 7.2.1 on Mac and Windows. On my servers, I replaced TraefikV2 by Caddy. No more labels in docker compose file for TraefikV2, all replace by few lines in CaddyFile, minimalist but works like a charm for seafile (including webdav) and OnlyOfficeDocumentServer, here is the content :

seafile.my.domain { reverse_proxy http://seafile:80 } onlyoffice.mydomain { reverse_proxy http://onlyoffice:80 }

The bad news is that the problem is still present on both Windows and Mac.